fix for bug where scene copy and free didn't manage ID users.

you could for eg, make a full copy of a scene, then manually remove its compo nodes - which would give invalid zero user count.
This commit is contained in:
2012-08-22 09:10:16 +00:00
parent ffcc63a7d0
commit a4fd9f827b
2 changed files with 5 additions and 4 deletions

View File

@@ -704,7 +704,7 @@ static bNodeTree *ntreeCopyTree_internal(bNodeTree *ntree, const short do_id_use
/* ntreeUserDecrefID inline */
if (do_id_user) {
id_us_min(node->id);
id_us_plus(node->id);
}
if (do_make_extern) {