Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-02-07 12:57:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-02-07 12:57:54 +0300
commit60eef5c7ff0b5dc45f79a86dc25729500d84bfd2 (patch)
treefd70c56fda1c1d9dd3f6123e78a2693393f00ce5 /source/blender/depsgraph/intern/depsgraph.cc
parentda128c12b513179e9fd9743aecb60824c221bb8e (diff)
Depsgraph: Fix node sockets as driver variables
Fixes empty not moving int deg_anim_material_driving_empty. Reported by Mai in IRC, thanks!
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph.cc4
1 files changed, 4 insertions, 0 deletions
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;