Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-05-25 13:23:03 +0300
committerJacques Lucke <jacques@blender.org>2020-05-25 13:23:55 +0300
commit87e9557cd109dc9a3d52f07b509a340bba4aaf20 (patch)
treecc37b521e6ec6d085b5fe9c411361fb4cb8385b5 /source/blender/depsgraph
parent60bed34f165b209dbc7225b433ebe9e81aec2d35 (diff)
Simulations: pass simulation data block to update function
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_nodes.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
index f76af5bdda5..7a562190cfd 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
@@ -1766,10 +1766,13 @@ void DepsgraphNodeBuilder::build_simulation(Simulation *simulation)
build_animdata(&simulation->id);
build_parameters(&simulation->id);
+ Simulation *simulation_cow = get_cow_datablock(simulation);
+ Scene *scene_cow = get_cow_datablock(scene_);
+
add_operation_node(&simulation->id,
NodeType::SIMULATION,
OperationCode::SIMULATION_EVAL,
- function_bind(BKE_simulation_data_update, _1, get_cow_datablock(scene_)));
+ function_bind(BKE_simulation_data_update, _1, scene_cow, simulation_cow));
}
void DepsgraphNodeBuilder::build_scene_sequencer(Scene *scene)