Fix T48434: Missing meta support in new depsgraph
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 17 May 2016 15:52:23 +0000 (17:52 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 17 May 2016 15:52:23 +0000 (17:52 +0200)
source/blender/depsgraph/intern/depsgraph_build_relations.cc

index 8b133e4c7ca7363aba1c5676bb4d5d34503a7f52..52af483d87c513cbe889f9d0952481366e16874a 100644 (file)
@@ -1690,7 +1690,9 @@ void DepsgraphRelationBuilder::build_obdata_geom(Main *bmain, Scene *scene, Obje
                        if (mom != ob) {
                                /* non-motherball -> cannot be directly evaluated! */
                                ComponentKey mom_key(&mom->id, DEPSNODE_TYPE_GEOMETRY);
+                               ComponentKey transform_key(&ob->id, DEPSNODE_TYPE_TRANSFORM);
                                add_relation(geom_key, mom_key, DEPSREL_TYPE_GEOMETRY_EVAL, "Metaball Motherball");
+                               add_relation(transform_key, mom_key, DEPSREL_TYPE_GEOMETRY_EVAL, "Metaball Motherball");
                        }
                        break;
                }