Fix T53547: Metaballs as dupli objects are not updated with the new Depsgraph
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 13 Dec 2017 09:50:28 +0000 (10:50 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 13 Dec 2017 09:50:28 +0000 (10:50 +0100)
Follow relations from old dependency graph.

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

index 6e1a6981466b85f70839e73b91c838baf1d99662..19e95a3582fe2cefc900e19bd6037d0f61cd3a71 100644 (file)
@@ -1383,6 +1383,13 @@ void DepsgraphRelationBuilder::build_particles(Object *object)
                if (part->ren_as == PART_DRAW_OB && part->dup_ob) {
                        ComponentKey dup_ob_key(&part->dup_ob->id, DEG_NODE_TYPE_TRANSFORM);
                        add_relation(dup_ob_key, psys_key, "Particle Object Visualization");
+                       if (part->dup_ob->type == OB_MBALL) {
+                               ComponentKey dup_geometry_key(&part->dup_ob->id,
+                                                             DEG_NODE_TYPE_GEOMETRY);
+                               add_relation(psys_key,
+                                            dup_geometry_key,
+                                            "Particle MBall Visualization");
+                       }
                }
        }