diff options
author | Bastien Montagne <bastien@blender.org> | 2020-12-07 17:40:29 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-12-07 18:55:51 +0300 |
commit | 513578b182fd0c427b9da653b715f8bfb16faec1 (patch) | |
tree | 5ee3109bcf4b99615e0adf92611bca3ab5bb2c02 /source/blender/makesrna | |
parent | c51a70537b12946bd8e7e66d29ef438a41a8801a (diff) |
Fix (unreported) LibOverride: GPencil local Modifiers not fully editable.
Missing case in `RNA_property_overridable_get`
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access_compare_override.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_compare_override.c b/source/blender/makesrna/intern/rna_access_compare_override.c index 4bbbf5f01da..2bf4de7af60 100644 --- a/source/blender/makesrna/intern/rna_access_compare_override.c +++ b/source/blender/makesrna/intern/rna_access_compare_override.c @@ -24,6 +24,7 @@ #include "DNA_ID.h" #include "DNA_constraint_types.h" +#include "DNA_gpencil_modifier_types.h" #include "DNA_key_types.h" #include "DNA_modifier_types.h" #include "DNA_object_types.h" @@ -77,6 +78,12 @@ bool RNA_property_overridable_get(PointerRNA *ptr, PropertyRNA *prop) return true; } } + else if (RNA_struct_is_a(ptr->type, &RNA_GpencilModifier)) { + GpencilModifierData *gp_mod = ptr->data; + if (gp_mod->flag & eGpencilModifierFlag_OverrideLibrary_Local) { + return true; + } + } /* If this is a RNA-defined property (real or 'virtual' IDProp), * we want to use RNA prop flag. */ return !(prop->flag_override & PROPOVERRIDE_NO_COMPARISON) && |