Fix T60957: ASSERT when reloading double-linked file.

Kind of funny to see that this has been missing presumably since the
first version of library linking in Blender, and only gets noticed now.
Then again, that was not really a critical issue, iirc write code
ensures all libraries directly used get properly written, even if flags
are incorrect.
This commit is contained in:
Bastien Montagne 2019-01-30 11:46:49 +01:00
parent e074204d2f
commit 534573f6b9
Notes: blender-bot 2023-02-14 03:55:10 +01:00
Referenced by issue #60957, ASSERT when reloading double-linked file
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ void id_lib_extern(ID *id)
if (id->tag & LIB_TAG_INDIRECT) {
id->tag &= ~LIB_TAG_INDIRECT;
id->tag |= LIB_TAG_EXTERN;
id->lib->parent = NULL;
}
}
}