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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user