Fix: Still allow unpacking of editable linked datablocks

Similar to 918d34a9ed, enable the button in `template_ID()`

Ref #122092

Pull Request: https://projects.blender.org/blender/blender/pulls/122199
This commit is contained in:
Philipp Oeser
2024-05-26 11:30:56 +02:00
committed by Philipp Oeser
parent 4624b1a9ae
commit 9c534cda00

View File

@@ -1537,7 +1537,7 @@ static void template_ID(const bContext *C,
RNA_string_set(but->opptr, "id_name", id->name + 2);
RNA_int_set(but->opptr, "id_type", GS(id->name));
if (ID_IS_LINKED(id)) {
if (!ID_IS_EDITABLE(id)) {
UI_but_flag_enable(but, UI_BUT_DISABLED);
}
}