Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-04-16 18:09:01 +0300
committerBastien Montagne <bastien@blender.org>2020-04-16 18:09:01 +0300
commit67ddf68dd9531a00a4d69ee28c44d82e87f69e8d (patch)
tree4f01cdb48cccbb9400ae3adb624fd61ab137f4c6 /source/blender/editors/space_node
parentdb600fd63998b81022f01e0b1b6b71c9cd359130 (diff)
parente9bf624a498a4f0074374740737d47c5df7fd87d (diff)
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/space_node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c
index d682cab7293..b6ee393b991 100644
--- a/source/blender/editors/space_node/space_node.c
+++ b/source/blender/editors/space_node/space_node.c
@@ -890,8 +890,7 @@ static void node_id_remap(ScrArea *UNUSED(area), SpaceLink *slink, ID *old_id, I
for (path = snode->treepath.first; path; path = path->next) {
if ((ID *)path->nodetree == old_id) {
path->nodetree = (bNodeTree *)new_id;
- id_us_min(old_id);
- id_us_plus(new_id);
+ id_us_ensure_real(new_id);
}
if (path == snode->treepath.first) {
/* first nodetree in path is same as snode->nodetree */