[Bf-blender-cvs] [8cdda3d2adc] blender-v2.79a-release: Fix T53547: Metaballs as dupli objects are not updated with the new Depsgraph

Sergey Sharybin noreply at git.blender.org
Mon Jan 8 15:16:10 CET 2018


Commit: 8cdda3d2adcc4582129bc625f2ac8ad48c020273
Author: Sergey Sharybin
Date:   Wed Dec 13 10:50:28 2017 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rB8cdda3d2adcc4582129bc625f2ac8ad48c020273

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 37c473f53be..e2f298a0f35 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1315,6 +1315,13 @@ void DepsgraphRelationBuilder::build_particles(Scene *scene, Object *ob)
 		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