From 4ffa5e570368697241d13b3e95ffad7dc6ea28da Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 17 Apr 2020 17:43:47 +0200 Subject: 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. --- source/blender/editors/interface/interface_templates.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors') 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, -- cgit v1.2.3