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:
Bastien Montagne 2016-07-14 15:23:53 +02:00
parent e10ddc7a91
commit 54ed0bb653
1 changed files with 2 additions and 4 deletions

View File

@ -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) {