[Bf-blender-cvs] [2ac33b47dcb] master: Fix T53547: Metaballs as dupli objects are not updated with the new Depsgraph
Sergey Sharybin
noreply at git.blender.org
Wed Dec 13 10:50:51 CET 2017
Commit: 2ac33b47dcbc66d63a72b23a4e827013c5be60e5
Author: Sergey Sharybin
Date: Wed Dec 13 10:50:28 2017 +0100
Branches: master
https://developer.blender.org/rB2ac33b47dcbc66d63a72b23a4e827013c5be60e5
Fix T53547: Metaballs as dupli objects are not updated with the new Depsgraph
Follow relations from old dependency graph.
===================================================================
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 6e1a6981466..19e95a3582f 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -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");
+ }
}
}
More information about the Bf-blender-cvs
mailing list