Fix: Still allow unpacking of editable linked datablocks

Don't do it for unpack all, which is about the local blend file. But for
individual buttons for datablocks it should work.

Ref #122092
This commit is contained in:
Brecht Van Lommel
2024-05-22 15:02:37 +02:00
parent c6aa1fec2b
commit 918d34a9ed

View File

@@ -841,8 +841,8 @@ bool BKE_packedfile_id_check(const ID *id)
void BKE_packedfile_id_unpack(Main *bmain, ID *id, ReportList *reports, enum ePF_FileStatus how)
{
/* Dont unpack resources that are packed in linked IDs. */
if (ID_IS_LINKED(id)) {
/* Only unpack when datablock is editable. */
if (!ID_IS_EDITABLE(id)) {
return;
}