Dalai Felinto
89aa4b1604
Link and expand overrides for collections
...
This code was neglected. Yet it is needed for when we support datablock
overrides so that the ID pointers are properly linked and expanded.
2018-03-20 14:48:54 -03:00
Bastien Montagne
504319239a
Cleanup: remove useless static override reference pointer from ID struct.
2018-03-20 18:12:45 +01:00
Bastien Montagne
410410f57b
Add basic read-only RNA access to static override data.
...
Will make investigating issues much, much easier!
2018-03-20 18:12:45 +01:00
Bastien Montagne
8a94a82934
Fix broken tatic verride detection in RNA collections.
...
We have to check all items of a collection when we want to create
overrides as needed...
2018-03-20 18:12:45 +01:00
Sergey Sharybin
e0388bc61a
Merge branch 'master' into blender2.8
2018-03-20 16:55:16 +01:00
Sergey Sharybin
69e35429bf
Remove debug only code from previous commit
2018-03-20 16:54:50 +01:00
Sergey Sharybin
a5bb918392
Memory allocator: Clarify consistency check function
...
Also make it to return truth when everything is good and
false otherwise.
2018-03-20 16:51:33 +01:00
Sergey Sharybin
ebbb55dd80
Depsgraph: Fix memory leak when datablock is not reused
...
It is possible that datablock will not be re-used for the new
dependency graph building. Freeing function was freeing all
the nested pointers of databnlock, but not datablock memory
itself.
2018-03-20 16:07:27 +01:00
Sergey Sharybin
c188ab7b67
Depsgraph: Prevent non-expandable datablocks from being freed
...
This avoids original image datablock destruction when using
copy on write.
2018-03-20 16:07:27 +01:00
Ray Molenkamp
4f97f58513
MSVC: Fix lite build.
...
MSVC still defines __cplusplus as 199711L until it's in full conformance with the newer c++ standards, however the things we need from the standard are fully supported, hence a check for the msvc version was needed.
2018-03-20 08:26:11 -06:00
Clément Foucault
cdf0df10a6
DRW: Fix bound_ubo_slots allocation size.
2018-03-20 15:16:10 +01:00
Clément Foucault
8a9be95cfb
DRW: Fix ubo binding code.
2018-03-20 15:08:23 +01:00
Sybren A. Stüvel
09c88fed1f
Fixed: cache clearing when using multiple Alembic files.
2018-03-20 12:54:48 +01:00
Campbell Barton
1782abf6e2
Fix BLI_assert for MSVC
...
Also use `_BLI_ASSERT` prefix for internal defines.
2018-03-20 11:56:11 +01:00
Bastien Montagne
04b8b1a167
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/library_query.c
2018-03-20 11:33:59 +01:00
Bastien Montagne
60ff803998
Fix missing ID pointer handling in materials in ID remapping code.
2018-03-20 11:32:16 +01:00
Sergey Sharybin
46a391b668
Fix missing array duplication when copying material
...
Texture paint slots were copied as a pointer, causing double-free.
2018-03-20 11:22:47 +01:00
Campbell Barton
1662c514c0
Cleanup: unused variables
...
Missed in own recent changes.
2018-03-20 08:03:58 +01:00
Joshua Leung
c8a7c4f245
Merge branch 'master' into blender2.8
2018-03-20 16:13:37 +13:00
Joshua Leung
8e5c407fc4
Fix compile error with MSVC2013 - Can't use __func__ (from BLI_assert) in inlined functions
...
ERROR: blenlib/intern/math_base_inline.c:371 - '__func__' : undeclared identifier (C:\blenderdev\master2\blender\source\blender\editors\lattice\editlattice_tools.c) [C2065]
2018-03-20 16:03:43 +13:00
Bogdan Nagirniak
b65933e7b3
Fix T54019: copying and linking bugs with custom ID pointer properties.
2018-03-19 22:14:02 +01:00
Germano
84536d1d3c
GPU Bufferes: Small optimization when updating buffers
...
With the API recently added to gawain, it is now possible to update the vbos linked to the batch.
So the batch does not have to be destroyed.
The optimization is more sensitive when sculpt is made on low poly meshs
2018-03-19 18:09:00 -03:00
Matthias Ellerbeck
8ecf35d850
Fix T54240: automatic node link moving should take into account type.
...
Without this a "Clearcoat" link could be moved to "Clearcoat Normal"
for example, which doesn't make much sense.
Differential Revision: https://developer.blender.org/D3105
2018-03-19 21:52:49 +01:00
Brecht Van Lommel
148b0fef09
Fix T54317: overlapping volume render bug after recent changes.
...
Increasing the samplig dimensions like this is not optimal, I'm looking
into some deeper changes to reuse the random number and change the RR
probabilities, but this should fix the bug for now.
2018-03-19 21:22:15 +01:00
Brecht Van Lommel
fddb4dee8a
Fix T54356: volume rendering bug using just color attribute.
2018-03-19 21:22:15 +01:00
Campbell Barton
254bb922e8
Cleanup: avoid passing bContext to particle API
...
Also add EvaluationContext to PEData
2018-03-19 19:04:50 +01:00
Campbell Barton
402486ea7b
Merge branch 'master' into blender2.8
2018-03-19 18:18:49 +01:00
Campbell Barton
b8eca8e07d
Cleanup: use utility header for particle looping
2018-03-19 18:18:04 +01:00
Campbell Barton
5e81d993af
Merge branch 'master' into blender2.8
2018-03-19 18:14:05 +01:00
Campbell Barton
a3486e735f
Cleanup: move particle undo into own file
...
Also avoid extern declarations which can get out of sync.
2018-03-19 17:46:49 +01:00
Campbell Barton
a5fc0ae150
Cleanup: move armature undo into own file
2018-03-19 17:45:20 +01:00
Campbell Barton
566f4e06ba
Cleanup: move metaball undo into own file
2018-03-19 16:59:34 +01:00
Campbell Barton
e7ca9d3477
Cleanup: move curve undo into own file
2018-03-19 16:30:53 +01:00
Clément Foucault
b5bf3011bf
GWN: Vertex Buffer: Remove the use of glMapBufferRange
...
We revert to the malloc/realloc and manually manage the upload.
There seems to be a performance penalty from using glMapBuffer on some
hardware, prefering way is glBufferData(NULL) with glBufferSubData.
2018-03-19 16:13:00 +01:00
Campbell Barton
c78ebf9f26
Cleanup: split lattice into own library
...
Was mixed with object functionality.
2018-03-19 15:45:50 +01:00
Clément Foucault
772e558e92
GWN: Perf: Use unsync glMapBufferRange to prevent sync time.
2018-03-19 14:14:32 +01:00
Clément Foucault
f2ae7796c3
GWN: Context: Use <unordered_set> instead of <forward_list>
...
We cannot have duplicates so unordered_set is better suited for this case.
Removing batches is now constant time on average instead of linear.
2018-03-19 14:14:32 +01:00
Campbell Barton
8859927e6f
Merge branch 'master' into blender2.8
2018-03-19 11:17:52 +01:00
Campbell Barton
342a18287f
Cleanup: type conversion warning
2018-03-19 09:12:48 +01:00
Jeroen Bakker
7729966af1
Fixed typo Python API
...
`mathutils.geometry.barycentric_transform` used `tri_a[1-3]` for the
target triangle, but in fact they are `tri_b[1-3]`
2018-03-19 08:19:48 +01:00
Bastien Montagne
e95282e783
Merge branch 'master' into blender2.8
2018-03-18 16:05:02 +01:00
Bastien Montagne
0301df40e5
Fix ugly recursive pattern in RNA PointCache data layout.
...
PointCache was having a collection of items of PointCache type, having a
collection of items of PointCache type, having...
Nuff said.
For now, chose the 'ugly' way to fix it, that is, the one that changes
nothing to API and scripts using it: we define another 'PointCacheItem'
RNA type for items of our point cache collection, which has exact same
interface as PointCache except for the collection.
This is doomed to be rewritten at some point anyway, not worth spending
time trying to define a really correct data layout for now.
2018-03-18 15:37:23 +01:00
Campbell Barton
368c581df1
CMake: disable boost for lite builds
2018-03-18 05:10:02 +01:00
Campbell Barton
2a9f000806
Cleanup: kdopbvh, only set parent nodes once
2018-03-18 05:08:12 +01:00
Campbell Barton
a51fdd89fd
Cleanup: use MEM_SAFE_FREE
2018-03-18 05:08:12 +01:00
Campbell Barton
2aa0bde3dc
mathutils: replace interp w/ blend when standalone
2018-03-18 05:08:12 +01:00
Ray Molenkamp
07c90f3a73
build_environment: remove msvc compiler warning from boost.
...
Even the boost people have given up trying to keep up with the rapid release
of new msvc versions, and have removed the warn for now see: 5ad0730630 (diff-eac863c1d46c77471e54e8818aab7534)
2018-03-17 12:47:17 -06:00
Ray Molenkamp
7427e3e501
MSVC: ignore warning c4828 The file contains a character that is illegal.
...
The only place this warning is coming from is from comments in headers of 3rd party libs. we can safely repress this warning for now.
2018-03-17 12:45:27 -06:00
Clément Foucault
4a3d94c073
Eevee: Volumetrics: Fix crash when using smoke volumes.
2018-03-17 19:08:14 +01:00
Clément Foucault
1ed287058d
DRW: Fix error in texture binding / unbinding.
2018-03-17 18:48:14 +01:00