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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-11-13 21:09:27 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-11-13 21:11:09 +0300
commitb0d0179d60ffc287a157bbab56516262b21d5a97 (patch)
tree1de4f174202becf380db3d5fc1065f10c86b90b5 /source/blender/depsgraph/intern/depsgraph.cc
parent445d813c87c63ce5654ec22a4fd88a8832552906 (diff)
Depsgraph: fix missing relations for drivers on ShaderNode properties.
Also fix duplicate driver to target relations due to a redundant line.
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 59322808100..d3c9560bcb1 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -230,6 +230,10 @@ static bool pointer_to_component_node_criteria(
*type = DEG_NODE_TYPE_SHADING;
return true;
}
+ else if (RNA_struct_is_a(ptr->type, &RNA_ShaderNode)) {
+ *type = DEG_NODE_TYPE_SHADING;
+ return true;
+ }
else if (ptr->type == &RNA_Curve) {
*id = (ID *)ptr->id.data;
*type = DEG_NODE_TYPE_GEOMETRY;