[Bf-blender-cvs] [6cf7cc3] master: Fix T48434: Missing meta support in new depsgraph

Sergey Sharybin noreply at git.blender.org
Tue May 17 17:52:23 CEST 2016


Commit: 6cf7cc3393f976df64476666c6b3dc95f796f535
Author: Sergey Sharybin
Date:   Tue May 17 17:52:23 2016 +0200
Branches: master
https://developer.blender.org/rB6cf7cc3393f976df64476666c6b3dc95f796f535

Fix T48434: Missing meta support in new depsgraph

===================================================================

M	source/blender/depsgraph/intern/depsgraph_build_relations.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index 8b133e4..52af483 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -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;
 		}




More information about the Bf-blender-cvs mailing list