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>2018-04-23 10:33:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-04-23 10:33:33 +0300
commitfa7e19bca43057ea6a722261f82e372893f49a24 (patch)
tree916faa6e26d868423d6102da6aae606dd8ba9c53 /source/blender/depsgraph/intern
parent89ab591345e45b5eae5a5eb22191b795cc298a4a (diff)
Depsgraph: Add missing relations builder
Was possible to miss some relations from being built when parent object is linked to the scene graph indirectly.
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index 4ebc0804479..dfc20286565 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -415,6 +415,8 @@ void DepsgraphRelationBuilder::build_object(Object *object)
DEG_OPCODE_TRANSFORM_OBJECT_UBEREVAL);
/* Parenting. */
if (object->parent != NULL) {
+ /* Make sure parent object's relations are built. */
+ build_object(object->parent);
/* Parent relationship. */
build_object_parent(object);
/* Local -> parent. */