[Bf-blender-cvs] [d814b11] depsgraph_refactor: Depsgraph: Attempt to solve issues with using object's id props as driver target
Sergey Sharybin
noreply at git.blender.org
Wed Apr 1 17:07:01 CEST 2015
Commit: d814b11af5a1302e82a181bddc2ea87208368ec3
Author: Sergey Sharybin
Date: Wed Apr 1 19:56:57 2015 +0500
Branches: depsgraph_refactor
https://developer.blender.org/rBd814b11af5a1302e82a181bddc2ea87208368ec3
Depsgraph: Attempt to solve issues with using object's id props as driver target
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
index 24fc075..2f2c251 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build_nodes.cpp
@@ -374,6 +374,12 @@ void DepsgraphNodeBuilder::build_object(Scene *scene, Base *base, Object *ob)
/* standard components */
build_object_transform(scene, ob);
+ /* TODO(sergey): This way using this object's
+ * proeprties as driver target works fine.
+ */
+ add_operation_node(&ob->id, DEPSNODE_TYPE_PARAMETERS, DEPSOP_TYPE_POST, NULL,
+ DEG_OPCODE_PLACEHOLDER, "Parameters Eval");
+
/* object data */
if (ob->data) {
/* type-specific data... */
More information about the Bf-blender-cvs
mailing list