diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-07 12:57:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-07 12:57:54 +0300 |
commit | 60eef5c7ff0b5dc45f79a86dc25729500d84bfd2 (patch) | |
tree | fd70c56fda1c1d9dd3f6123e78a2693393f00ce5 | |
parent | da128c12b513179e9fd9743aecb60824c221bb8e (diff) |
Depsgraph: Fix node sockets as driver variables
Fixes empty not moving int deg_anim_material_driving_empty.
Reported by Mai in IRC, thanks!
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.cc | 4 |
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; |