[Bf-blender-cvs] [60eef5c7ff0] blender2.8: Depsgraph: Fix node sockets as driver variables
Sergey Sharybin
noreply at git.blender.org
Wed Feb 7 11:24:18 CET 2018
Commit: 60eef5c7ff0b5dc45f79a86dc25729500d84bfd2
Author: Sergey Sharybin
Date: Wed Feb 7 10:57:54 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB60eef5c7ff0b5dc45f79a86dc25729500d84bfd2
Depsgraph: Fix node sockets as driver variables
Fixes empty not moving int deg_anim_material_driving_empty.
Reported by Mai in IRC, thanks!
===================================================================
M source/blender/depsgraph/intern/depsgraph.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc
index 3a78c9050f7..01a4aad13ae 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -220,6 +220,10 @@ static bool pointer_to_component_node_criteria(
*subdata = seq->name; // xxx?
return true;
}
+ else if (RNA_struct_is_a(ptr->type, &RNA_NodeSocket)) {
+ *type = DEG_NODE_TYPE_SHADING;
+ return true;
+ }
if (prop != NULL) {
/* All unknown data effectively falls under "parameter evaluation". */
*type = DEG_NODE_TYPE_PARAMETERS;
More information about the Bf-blender-cvs
mailing list