Fix T57483: Driver on grease pencil modifier does not update

This commit is contained in:
Sergey Sharybin
2019-05-28 11:10:35 +02:00
parent 1cf27668b9
commit fc8547b889

View File

@@ -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. */