Fix (unreported) broken UI of modifiers for liboverrides.

Broken in recent refactor of modifiers UI code...
This commit is contained in:
Bastien Montagne
2020-06-22 16:52:53 +02:00
parent 461ba2c74c
commit 41158a91f2

View File

@@ -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);
}