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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-03-29 12:21:36 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-03-29 12:21:36 +0300
commit9f55beb971297cd3fcfd043bf4a0b5d2a5742398 (patch)
treeb26bb0ba41366015f119200b25be6340fc8ad0e0 /source/blender/depsgraph
parentd724363a39564f5d4d4c768f789467c95aacfcdf (diff)
Cleanup: Make it obvious which relations are used
Relation in dependency graph is something else. So make it clear that those are the effector ones.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index f0c1dc8ffc3..dd8dc537c30 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1732,10 +1732,11 @@ void DepsgraphRelationBuilder::build_rigidbody(Scene *scene)
* initialized.
* TODO(sergey): Verify that it indeed goes to initialization and not to a
* simulation. */
- ListBase *relations = build_effector_relations(graph_, rbw->effector_weights->group);
- LISTBASE_FOREACH (EffectorRelation *, relation, relations) {
+ ListBase *effector_relations =
+ build_effector_relations(graph_, rbw->effector_weights->group);
+ LISTBASE_FOREACH (EffectorRelation *, effector_relation, effector_relations) {
ComponentKey effector_transform_key(
- &relation->ob->id, NodeType::TRANSFORM);
+ &effector_relation->ob->id, NodeType::TRANSFORM);
add_relation(effector_transform_key, rb_init_key, "RigidBody Field");
}
/* Objects. */