diff options
author | Bastien Montagne <bastien@blender.org> | 2020-04-17 18:43:47 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-04-17 18:49:12 +0300 |
commit | 4ffa5e570368697241d13b3e95ffad7dc6ea28da (patch) | |
tree | 1686e6fbc37421d9fe000a86334e2da6441ff0c2 | |
parent | 6adb254bb046ab337cfd4225ca55e17f196db312 (diff) |
Fix (unreported) bda locking of whole GP modifiers whem GP obdata is linked.
Only applys to obdata feature is supposed to be locked in that case, not
the whole modifier.
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 52afb17079d..ca9f12a4219 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -2249,6 +2249,10 @@ static uiLayout *gpencil_draw_modifier(uiLayout *layout, Object *ob, GpencilModi 0, "apply_as", MODIFIER_APPLY_DATA); + + UI_block_lock_clear(block); + UI_block_lock_set(block, ob && ID_IS_LINKED(ob), ERROR_LIBDATA_MESSAGE); + uiItemO(row, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Copy"), ICON_NONE, |