all areas of blender now do node tree id user count management, except for some excep...
[blender.git] / source / blender / blenkernel / intern / texture.c
index 66b096b14f1fc19e618fd407484b47cb77cff542..2f54fe6cebd79ba7caa96a1793f39d7c56aa4253 100644 (file)
@@ -430,7 +430,7 @@ void BKE_texture_free(Tex *tex)
        tex->id.icon_id = 0;
        
        if (tex->nodetree) {
-               ntreeFreeTree_ex(tex->nodetree, FALSE); /* TODO: do_id_user arg needs checking */
+               ntreeFreeTree(tex->nodetree);
                MEM_freeN(tex->nodetree);
        }
 }
@@ -697,7 +697,7 @@ Tex *BKE_texture_copy(Tex *tex)
                if (tex->nodetree->execdata) {
                        ntreeTexEndExecTree(tex->nodetree->execdata, 1);
                }
-               texn->nodetree = ntreeCopyTree_ex(tex->nodetree, FALSE); /* TODO: do_id_user arg needs checking */
+               texn->nodetree = ntreeCopyTree(tex->nodetree);
        }
        
        return texn;