[Bf-blender-cvs] [58b554c7a4f] master: Fix T66591: GPencil layer visibility control via driver doesn't work

Sergey Sharybin noreply at git.blender.org
Tue Jul 30 10:28:03 CEST 2019


Commit: 58b554c7a4f80f57fc70b470ae793c337e4ba39e
Author: Sergey Sharybin
Date:   Tue Jul 30 10:27:13 2019 +0200
Branches: master
https://developer.blender.org/rB58b554c7a4f80f57fc70b470ae793c337e4ba39e

Fix T66591: GPencil layer visibility control via driver doesn't work

===================================================================

M	source/blender/depsgraph/intern/builder/deg_builder_rna.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
index 5bb3ebf40c4..be494104522 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
@@ -279,7 +279,8 @@ RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr,
   }
   else if (RNA_struct_is_a(ptr->type, &RNA_Mesh) || RNA_struct_is_a(ptr->type, &RNA_Modifier) ||
            RNA_struct_is_a(ptr->type, &RNA_GpencilModifier) ||
-           RNA_struct_is_a(ptr->type, &RNA_Spline) || RNA_struct_is_a(ptr->type, &RNA_TextBox)) {
+           RNA_struct_is_a(ptr->type, &RNA_Spline) || RNA_struct_is_a(ptr->type, &RNA_TextBox) ||
+           RNA_struct_is_a(ptr->type, &RNA_GPencilLayer)) {
     /* When modifier is used as FROM operation this is likely referencing to
      * the property (for example, modifier's influence).
      * But when it's used as TO operation, this is geometry component. */



More information about the Bf-blender-cvs mailing list