Commit: 650332de837e6baafa38e71d9ac10566ba3cc0d1
Author: Joshua Leung
Date: Sat Jan 10 02:27:40 2015 +1300
Branches: depsgraph_refactor
https://developer.blender.org/rB650332de837e6baafa38e71d9ac10566ba3cc0d1
Depsgraph: Shrinkwrap constraint needs the target object's transform as well as
its geometry
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_relations.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
index 8d81830..10d9b70 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cpp
@@ -507,9 +507,12 @@ void DepsgraphRelationBuilder::build_constraints(Scene
*scene, ID *id, eDepsNode
}
else if (con->type ==
CONSTRAINT_TYPE_SHRINKWRAP) {
/* Constraints which requires the
target object surface. */
- /* TODO(sergey): More cosntarints here?
*/
ComponentKey target_key(&ct->tar->id,
DEPSNODE_TYPE_GEOMETRY);
add_relation(target_key,
constraint_op_key, DEPSREL_TYPE_TRANSFORM, cti->name);
+
+ /* NOTE: obdata eval now doesn't
necessarily depend on the object's transform... */
+ ComponentKey
target_transform_key(&ct->tar->id, DEPSNODE_TYPE_TRANSFORM);
+ add_relation(target_transform_key,
constraint_op_key, DEPSREL_TYPE_TRANSFORM, cti->name);
}
else {
/* standard object relation */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs