[Bf-blender-cvs] [fc8547b8892] master: Fix T57483: Driver on grease pencil modifier does not update

Sergey Sharybin noreply at git.blender.org
Tue May 28 11:15:12 CEST 2019


Commit: fc8547b88924ea3ba083b3b7cec705e6eba87422
Author: Sergey Sharybin
Date:   Tue May 28 11:10:35 2019 +0200
Branches: master
https://developer.blender.org/rBfc8547b88924ea3ba083b3b7cec705e6eba87422

Fix T57483: Driver on grease pencil modifier does not update

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

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 fa38dce1a9f..403c9cfc778 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc
@@ -277,7 +277,8 @@ RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr,
       return node_identifier;
     }
   }
-  else if (RNA_struct_is_a(ptr->type, &RNA_Modifier)) {
+  else if (RNA_struct_is_a(ptr->type, &RNA_Modifier) ||
+           RNA_struct_is_a(ptr->type, &RNA_GpencilModifier)) {
     /* 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