Fix bad handling of datablock's nodetree id_clear_lib_data_ex().
Those data blocks are never shared, exactly as with shapekeys, much simpler to also clear their lib_data (especially since they have no user!).
This commit is contained in:
parent
e10ddc7a91
commit
54ed0bb653
|
@ -1483,10 +1483,8 @@ void id_clear_lib_data_ex(Main *bmain, ID *id, bool id_in_mainlist)
|
|||
/* internal bNodeTree blocks inside ID types below
|
||||
* also stores id->lib, make sure this stays in sync.
|
||||
*/
|
||||
ntree = ntreeFromID(id);
|
||||
|
||||
if (ntree) {
|
||||
ntreeMakeLocal(bmain, ntree, false, false);
|
||||
if ((ntree = ntreeFromID(id))) {
|
||||
id_clear_lib_data_ex(bmain, &ntree->id, id_in_mainlist);
|
||||
}
|
||||
|
||||
if (GS(id->name) == ID_OB) {
|
||||
|
|
Loading…
Reference in New Issue