[Bf-blender-cvs] [41158a91f2e] master: Fix (unreported) broken UI of modifiers for liboverrides.

Bastien Montagne noreply at git.blender.org
Mon Jun 22 16:54:57 CEST 2020


Commit: 41158a91f2edcc8f7b29e5a0b37ef7a951908c3c
Author: Bastien Montagne
Date:   Mon Jun 22 16:52:53 2020 +0200
Branches: master
https://developer.blender.org/rB41158a91f2edcc8f7b29e5a0b37ef7a951908c3c

Fix (unreported) broken UI of modifiers for liboverrides.

Broken in recent refactor of modifiers UI code...

===================================================================

M	source/blender/modifiers/intern/MOD_ui_common.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_ui_common.c b/source/blender/modifiers/intern/MOD_ui_common.c
index a05d5383391..d6c9d7b3cb7 100644
--- a/source/blender/modifiers/intern/MOD_ui_common.c
+++ b/source/blender/modifiers/intern/MOD_ui_common.c
@@ -146,8 +146,7 @@ void modifier_panel_get_property_pointers(const bContext *C,
   }
 
   uiBlock *block = uiLayoutGetBlock(panel->layout);
-  UI_block_lock_set(
-      block, BKE_object_obdata_is_libdata(ob) || ID_IS_LINKED(ob), ERROR_LIBDATA_MESSAGE);
+  UI_block_lock_set(block, ID_IS_LINKED(ob), ERROR_LIBDATA_MESSAGE);
 
   uiLayoutSetContextPointer(panel->layout, "modifier", r_md_ptr);
 }



More information about the Bf-blender-cvs mailing list