diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-22 16:49:07 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-22 20:16:33 +0300 |
commit | 750899fd318fae8ddd485936167071481ee1e356 (patch) | |
tree | 19c00c249916b9000922736e4118c99fc940e9b0 /source/blender/simulation | |
parent | 921c95ab5e4473f85c74cab3609917c4c2309c6a (diff) |
Simulation: improve depsgraph integration
A simulation data block has an embedded node tree, which requires
special handling in a couple of places. Some of those places were
missing beforehand.
This also adds a relation to make sure that the simulation is evaluated
after animations on the embedded node tree are evaluated.
Diffstat (limited to 'source/blender/simulation')
-rw-r--r-- | source/blender/simulation/intern/simulation_update.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/simulation/intern/simulation_update.cc b/source/blender/simulation/intern/simulation_update.cc index 09219e0238f..7a748ee57d1 100644 --- a/source/blender/simulation/intern/simulation_update.cc +++ b/source/blender/simulation/intern/simulation_update.cc @@ -108,8 +108,7 @@ void update_simulation_in_depsgraph(Depsgraph *depsgraph, SimulationInfluences influences; RequiredStates required_states; - /* TODO: Use simulation_cow, but need to add depsgraph relations before that. */ - collect_simulation_influences(*simulation_orig, resources, influences, required_states); + collect_simulation_influences(*simulation_cow, resources, influences, required_states); if (current_frame == 1) { reinitialize_empty_simulation_states(simulation_orig, required_states); |