6ec8344243
Depsgraph: Add missing movie clip dopesheet invalidation
2017-10-25 11:45:31 +02:00
eb090d0609
Depsgraph: Use explicit opcode for shape key
2017-10-25 11:37:24 +02:00
a2e22c79cb
Depsgraph: Cleanup, use explicit cloth modifier opcode
...
Avoids use of placeholder operation which also was involving some string
comparisons.
2017-10-25 11:34:41 +02:00
3997a157e9
Depsgraph: Cleanup, don't call explicit add_id()
...
This is redundant, adding components will check for ID to exist.
2017-10-25 11:31:22 +02:00
1bdc687e7a
Depsgraph: Use explicit parameters eval operation code
...
This replaces usage of generic PLACEHOLDEWR with string lookup with more
explicit opcode. This should make it faster to build dependency graph by
avoiding string comparisons when it's not needed.
There should be no user measurable different.
2017-10-25 11:25:10 +02:00
11d7445905
Depsgraph: Cleanup, use proper style for macro loop
2017-10-25 11:25:10 +02:00
45329ce319
Depsgraph: Remove unsued node flag
2017-10-25 11:25:10 +02:00
ea29e4c997
Depsgraph: Make operation codes more obvious
...
This synchronizes al lrelated changes from blender2.8 branch.
2017-10-25 11:25:10 +02:00
3e8abc0535
Depsgraph: Make Copy-on-Write a command line option
...
Before it was a compile time option which was not very easy to use or test. Now
the project is getting more mature, so very soon we will be able to call for a
public tests of limited features.
The copy-on-write (which includes animation, modifiers) is enabled using
--enable-copy-on-write command line argument.
2017-10-18 14:35:34 +02:00
a2758152e2
Merge branch 'master' into blender2.8
2017-10-16 22:28:24 +11:00
6d8f63a834
Fix T53054: Parentless bone + IK crashes
2017-10-16 22:21:45 +11:00
adfbf276a1
Cleanup: style, duplicate includes
2017-10-07 15:57:14 +11:00
3801f76b7b
Fix T52932: Driver with target of custom property from scene fails to update
...
Note that this is only supported in new depsgraph.
2017-09-28 16:13:28 +05:00
98ba302f70
Merge branch 'master' into blender2.8
2017-09-25 18:57:43 +05:00
675cef0a16
Fix T52835: When driven IK influence change, ik animation have 1 frame delay
2017-09-25 18:48:55 +05:00
75f36266df
Merge branch 'master' into blender2.8
2017-09-14 16:17:22 +05:00
09c6c6c486
Fix T52749: New Depsgraph - Render View Mask is not initialized correctly
2017-09-14 16:12:01 +05:00
f7163a7d0a
Fix T52741: Follow track with depth object crashes Blender with new depsgraph
2017-09-14 12:31:54 +05:00
74eed8e30e
Fix T52705: Lamps shadows are not refreshed when tweaking lamps parameters
...
Lamp and camera datablocks updates should flush some updates to corresponding
objects. Currently it's done as Parameters -> Parameters relations.
2017-09-12 11:58:30 +05:00
9deccce07d
Depsgraph: Fix missing material update when driving property in a group
2017-08-29 17:03:07 +02:00
f846846941
Depsgraph: Fix missing updates when tweaking node tree parameters
...
The is following: split copy on write update for node trees, and if we are only
tagging for uniform buffer update we skip whole datablock copy and only invoke
copy default_values form original nodetree to a copied one.
Thing which i'm not sure is: whether we need to use different branches in graph
itself to control such a conditional behavior, or whether we need to store tag
somewhere in the dependency graph. There are obviously cons and pros in both
approaches, and need to think about this. Maybe with more examples it becomes
more obvious which way is better.
This only fixes manual tweaks for now, animation support is coming.
2017-08-29 12:58:55 +02:00
156c0ab255
Depsgraph: Don't case ID_Type to short
2017-08-28 11:51:53 +02:00
52dd5c5fcf
Merge branch 'master' into blender2.8
2017-08-28 11:44:39 +02:00
b4b1397ad9
Depsgraph: Don't cast ID_Type to short
2017-08-28 11:43:36 +02:00
49e7b77b19
Depsgraph: Pass copy-on-write pointer to material update
...
Unfortunately, there is something else wrong going on here, which makes objects
black after tweaking material settings.
2017-08-28 11:00:42 +02:00
a679457263
Fix T51907: New Depsgraph - Camera constraint is not evaluated properly
...
This is more a workaround for until we've got proper visibility flush, which
will likely happen in blender2.8 branch.
2017-08-24 14:35:48 +02:00
9cfb72ff81
Merge branch 'master' into blender2.8
2017-08-22 16:31:33 +02:00
9f40153094
Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent
2017-08-22 16:27:33 +02:00
f3e02eb32e
Depsgraph: Cleanup, make code friendlier to be edited in columns
2017-08-22 16:24:58 +02:00
c80ab62aee
Depsgraph: Remove placeholder for path evaluation
...
Wasn't used in years, if it really needs to be dedicated operation it needs to
be revisited anyway.
2017-08-22 16:12:01 +02:00
ac17f29b2f
Cleanup: quiet warnings
2017-08-12 14:07:26 +10:00
ccb8e78d6c
Cleanup: whitespace
2017-08-12 13:43:40 +10:00
e8b6bcd65c
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/editors/object/object_add.c
source/blender/python/intern/bpy_app_handlers.c
2017-08-08 16:43:25 +02:00
90b3dba515
Fix T52255: New Depsgraph - Constraint and Drivers not working together when the driver references itself
2017-08-08 15:27:25 +02:00
126830b56c
Depsgraph: Cleanup, make it easier to debug on laptop
2017-08-08 15:27:25 +02:00
c27446b5a0
Depsgraph: Fix wrong data type used for armature tag
...
Spotted by Ray aka LazyDodo, thanks!
2017-08-03 08:19:13 +02:00
50cc0aa0d1
Depsgraph: Re-use evaluated mesh across frames and remove time dependency from all CoW components
...
This commit is a work forward having less updates during playback, which speeds
things up a lot here. The idea is simple: stop update all copy-on-write
datablocks (which implies full re-evaluation actually) on frame change and
re-use existing evaluated meshes as much as possible.
This brings playback speed to 24 fps on the dino test scene here. Performance
drops down a lot when armature is animated tho, but that's because of need of
tangent space calculation which we can't do much about from just a dependency
graph.
Hopefully this doesn't make copy-on-write too unstable, quick tests here are
surviving fine.
2017-07-28 12:27:34 +02:00
e90468e5a3
Depsgraph: Cleanup, use some utility functions to shorten construction code
...
Still some cleanup is possible.
2017-07-27 15:19:36 +02:00
cf38371155
Depsgraph: Create ID nodes on build-time expansion using node builder
...
This will allow us to do some builder-specific trickery when ID nodes are
requested to be created from build-time expansion.
2017-07-27 15:19:36 +02:00
3441af49bd
Depsgraph: Fix possibly missing lamp update when lamp data changes
2017-07-27 15:19:36 +02:00
f8bd6adee2
Depsgraph: Skip iterating over all ntree users on node tree parameter update
...
Also make sure drivers on node tree properties will work correctly for viewport.
2017-07-27 11:50:14 +02:00
762fa7bee3
Depsgraph: Remove unsued node flag
2017-07-25 14:06:36 +02:00
1c4c288727
Pass EvaluationContext argument everywhere
...
Note that some little parts of code have been dissabled because eval_ctx
was not available there. This should be resolved once DerivedMesh is
replaced.
2017-07-21 14:47:26 +02:00
9fbef5d5d5
Merge branch 'master' into blender2.8
2017-07-21 11:18:02 +02:00
4d67034076
Fix T52134: New depsgraph crashes when evaluating several psys on from object
2017-07-21 11:12:34 +02:00
dfcb568c16
Fix T51925: Eevee: Animated Eevee values slowdown
...
Move material update from RNA callback to dependency graph.
2017-07-20 17:48:36 +02:00
21f27692da
Depsgraph: Use explicit material update operation code
...
Avoids string comparison on key matching.
2017-07-20 16:03:04 +02:00
83b0bf9166
Depsgraph: Solve TODO about more granular particle settings update tagging
2017-07-20 15:38:48 +02:00
9f9244b6ae
Depsgraph: Remove redundant argument from add_id_node()
2017-07-19 17:31:32 +02:00
e29c54674c
Depsgraph: Fix strict compiler error with copy on write disabled
2017-07-19 16:26:22 +02:00