Dalai Felinto
8d04f49d0e
Mesh batch caches update from depsgraph
...
We no longer need to rely on Derived mesh flag since the mesh is
properly flushed from the depsgraph
2017-01-26 19:14:39 +01:00
Dalai Felinto
9b7b9d6ae9
Depsgraph: mesh cache depends needs updates when geometry changes (patch by Sergey Sharybin)
2017-01-26 19:06:17 +01:00
Dalai Felinto
4c43dddeb7
Use the ultimate depsgraph callback function
...
Note: when in edit mode this depsgraph update is not being called. We are using DerivedMesh in those cases, so it is fine. I would like to investigate this though
2017-01-26 18:56:52 +01:00
Sergey Sharybin
9023abbf27
Depsgraph: Add placeholder function to handle objects update
...
This way @dfelinto can do some special trickery in there.
2017-01-26 17:24:57 +01:00
Sergey Sharybin
5ef2f21963
Merge branch 'master' into blender2.8
2017-01-26 17:23:33 +01:00
Sergey Sharybin
67bef6bcf6
Depsgraph: Fix typo in assert
2017-01-26 17:22:54 +01:00
Sergey Sharybin
d812e0cb64
Blender 2.8: Apparently auto-merge worked incorrect in the merge commit
2017-01-26 17:04:25 +01:00
Sergey Sharybin
9e48cafd6d
Merge branch 'master' into blender2.8
2017-01-26 17:02:28 +01:00
Sergey Sharybin
fd69ba2255
Depsgraph: Link from material to object shading
...
This is a ground work for the upcoming changes in Blender 2.8 branch
where we need to do special actions to reconstruct shaders when
material changes.
2017-01-26 17:01:37 +01:00
Sergey Sharybin
c441eb27ea
Depsgraph: Add relation from node tree to material it's coming from
2017-01-26 16:49:24 +01:00
Sergey Sharybin
331f721725
Depsgraph: Remove owner argument from relations builder as well
...
The idea was to link something to a parent, but the point is:
we must not pass owner deep and then have any parent-type-related
logic implemented in the "children".
2017-01-26 16:36:37 +01:00
IRIE Shinsuke
f14e1da5aa
Fix (unreported) crash when file browser attempts to show preview of some defective font
...
Confirmed with the Wine's bundled fonts.
2017-01-27 00:36:24 +09:00
Sergey Sharybin
3c3c52a74b
Depsgraph: Remove owner node argument which was simply passed around
2017-01-26 16:29:09 +01:00
Sergey Sharybin
ac58a7fa19
Compositor: Make HSV node inputs a real sockets
...
This is much more flexible solution which will allow doing some
more procedural features.
Reviewers: brecht, dfelinto, mont29
Reviewed By: mont29
Subscribers: Severin
Differential Revision: https://developer.blender.org/D2403
2017-01-26 15:20:13 +01:00
Dalai Felinto
18cf3e1a38
Fix unfreed memory after cleaning render layers
...
The freestyle data was never freed when removing a renderlayer.
```
blender -b --factory-startup --debug-memory --python-expr "import bpy;bpy.ops.scene.render_layer_add();bpy.context.scene.render.layers.active_index=0;bpy.ops.scene.render_layer_remove()"
```
2017-01-26 11:58:51 +01:00
Dalai Felinto
290e080db4
Fix T50530: Crash on Info Editor "console"
...
Introduced on rB2de882e8 - the original size of the array was neglected
2017-01-26 09:41:40 +01:00
Kévin Dietrich
01527197aa
Alembic: fix compile error on Linux.
2017-01-26 06:18:07 +01:00
Kévin Dietrich
b91edd61d0
Fix T50287: Blender crashes when open a blend that contains an alembic
...
file.
Missed in rB62a2ed97b.
2017-01-26 06:16:33 +01:00
Dalai Felinto
e5482f986c
Fix T50115: stereoscopic video file memory leak
2017-01-25 15:16:36 +01:00
Sergey Sharybin
e29a6f739d
Fix T50512: Linked Backround scene with animation not updating with new depsgraph
...
Was missing relations for the set scenes.
Perhaps not ideal solution, but should be good enough for now.
2017-01-25 12:30:29 +01:00
Sergey Sharybin
e4de6e87e1
Depsgraph: Do ID tag outside of build_scene
...
Otherwise it was possible to get ID tags cleared in the middle
of DEG construction when there are set scenes used.
2017-01-25 12:28:27 +01:00
Dalai Felinto
99cfad6a01
Convert MBC_ API to Mesh (instead of derived mesh) and move it to mesh_render
...
This includes a few fixes in the MBC_ api.
The idea here is for this to be the only interface the render engines
will deal with for the meshes.
If we need to expose special options for sculpting engine we refactor
this accordingly. But for now we are shaping this in a per-case base.
Note:
* We still need to hook up to the depsgraph to force clear/update of
batch_cache when mesh changes
(I'm waiting for Sergey Sharybin's depsgraph update for this though)
* Also ideally we could/should use BMesh directly instead of
DerivedMesh, but this will do for now.
Note 2:
In the end I renamed the `BKE_mesh_render` functions to `static
mesh_render`. We can re-expose them as BKE_* later once we need it.
Reviewers: merwin
Subscribers: fclem
Differential Revision: https://developer.blender.org/D2476
2017-01-25 10:01:48 +01:00
Aaron Carlisle
4cbfaa6f3f
Revert "UI: Add missing menu item"
...
This reverts commit 1ad842d432 .
2017-01-25 01:33:10 -05:00
Aaron Carlisle
1ad842d432
UI: Add missing menu item
2017-01-25 01:00:28 -05:00
Julian Eisel
8a6c689f30
Fix T50386: Crash when spawning pie menus
...
D2455 by @raa, thanks!
2017-01-24 21:35:38 +01:00
Sergey Sharybin
605695de61
Depsgraph: Fix duplicated operation node when two objects are sharing same armature
2017-01-24 17:15:39 +01:00
Sergey Sharybin
5be2a62ca3
Merge branch 'master' into blender2.8
2017-01-24 14:56:56 +01:00
Sergey Sharybin
b6ccba9241
Fix typo in comment
2017-01-24 14:56:35 +01:00
Sergey Sharybin
f286e7e017
Depsgraph: Make it more clear and explicit compile fail when required features are not found
2017-01-24 12:57:33 +01:00
Sergey Sharybin
769d189ff1
Depsgraph: Remove legacy code from new depsgraph
...
Now we have no remaining WITH_LEGACY_DEPSGRAPH in the code.
2017-01-24 12:55:37 +01:00
Sergey Sharybin
610af632a9
Depsgraph: Remove command line argument to use new depsgraph
2017-01-24 12:54:21 +01:00
Sergey Sharybin
a2d609331b
Depsgraph: Remove more legacy code from viewport
2017-01-24 12:52:20 +01:00
Sergey Sharybin
218b06eb83
Depsgraph: Remove legacy updateDepgraph callbacks from modifiers
2017-01-24 12:49:23 +01:00
Sergey Sharybin
55e6d5428d
Depsgraph: Remove legacy implementation of depsgraph
2017-01-24 12:47:23 +01:00
Sergey Sharybin
f20b8ae5aa
Depsgraph: Remove legacy calls from scene update routines
2017-01-24 12:42:56 +01:00
Sergey Sharybin
46d6992907
Depsgraph: Remove special exception in update logging
2017-01-24 12:34:28 +01:00
Sergey Sharybin
9e40027110
Depsgraph: Remove special version of pose builder
2017-01-24 12:34:24 +01:00
Sergey Sharybin
23122ca889
Depsgraph: Remove legacy depsgraph code from viewport
2017-01-24 12:34:18 +01:00
Sergey Sharybin
991bda6959
Depsgraph: Remove legacy depsgraph code from transform
2017-01-24 12:34:14 +01:00
Antonio Vazquez
520afa2962
GPencil: Fix unreported animation data missing when change palette name
...
When a palette was renamed, the animation data was not changed.
This fix is related to commit 196520fe7d
2017-01-24 09:15:41 +01:00
Aaron Carlisle
e5d8c2a67f
Use new manual URL
2017-01-23 19:10:37 -05:00
Sergey Sharybin
08ca32093a
Merge branch 'master' into blender2.8
2017-01-23 18:11:42 +01:00
Sergey Sharybin
39577403d3
Fix compilation error with legacy depsgraph disabled
2017-01-23 18:08:41 +01:00
Sergey Sharybin
7b8810b01a
Silence strict compiler warnings
...
Similar thing to other areas where we mix Blender's char with OpenGL API.
2017-01-23 11:46:02 +01:00
Julian Eisel
1814241526
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/space_action/action_draw.c
2017-01-22 21:16:00 +01:00
Joshua Leung
d2382f782e
Fix T49527: Blender stalls when changing armature ghosting range with stepsize = 0
...
A big thanks to Steffen Mortensen (stifan) for finding the root cause of this bug!
2017-01-22 02:55:10 +13:00
Bastien Montagne
82187a58f5
Fix own mistake in rB051526da6279, confusing off_t with ptrdiff_t.
2017-01-20 21:57:48 +01:00
Bastien Montagne
475d536f72
Fix minor glitches in GP code.
...
Reported by coverity scan.
2017-01-20 18:46:06 +01:00
Bastien Montagne
a97ec403c2
Fix/cleanup stupid check on array of char being non-NULL pointer...
...
Reported by coverity scan.
2017-01-20 18:43:42 +01:00
Bastien Montagne
21e1282265
Fix float buffer of tracking image accessed outside of check that it has been correctly allocated.
...
Reported by coverity scan.
2017-01-20 18:41:56 +01:00