Fix (unreported) LibOverride: GPencil local Modifiers not fully editable.
Missing case in `RNA_property_overridable_get`
This commit is contained in:
parent
c51a70537b
commit
513578b182
|
@ -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) &&
|
||||
|
|
Loading…
Reference in New Issue