[Bf-blender-cvs] [d1d7217] master: Depsgraph: Rigid body simulation doesn't need explicit time relation

Sergey Sharybin noreply at git.blender.org
Mon Dec 5 16:38:55 CET 2016


Commit: d1d721769299d8c79c45fe2c2849a81c3b57e82c
Author: Sergey Sharybin
Date:   Mon Dec 5 16:03:10 2016 +0100
Branches: master
https://developer.blender.org/rBd1d721769299d8c79c45fe2c2849a81c3b57e82c

Depsgraph: Rigid body simulation doesn't need explicit time relation

It'll be dependent on time via Time Source -> Rebuild RB World chain.

===================================================================

M	source/blender/depsgraph/intern/builder/deg_builder_relations.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 46f053e..3fa2274 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1065,8 +1065,10 @@ void DepsgraphRelationBuilder::build_rigidbody(Scene *scene)
 
 	/* time dependency */
 	TimeSourceKey time_src_key;
-	add_relation(time_src_key, init_key, DEPSREL_TYPE_TIME, "TimeSrc -> Rigidbody Reset/Rebuild (Optional)");
-	add_relation(time_src_key, sim_key, DEPSREL_TYPE_TIME, "TimeSrc -> Rigidbody Sim Step");
+	add_relation(time_src_key,
+	             init_key,
+	             DEPSREL_TYPE_TIME,
+	             "TimeSrc -> Rigidbody Reset/Rebuild (Optional)");
 
 	/* objects - simulation participants */
 	if (rbw->group) {




More information about the Bf-blender-cvs mailing list