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:
-rw-r--r--source/blender/editors/space_node/space_node.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/space_node.c b/source/blender/editors/space_node/space_node.c
index ad7632377a3..5960360dc33 100644
--- a/source/blender/editors/space_node/space_node.c
+++ b/source/blender/editors/space_node/space_node.c
@@ -80,7 +80,12 @@ void ED_node_tree_start(SpaceNode *snode, bNodeTree *ntree, ID *id, ID *from)
BLI_addtail(&snode->treepath, path);
- id_us_ensure_real(&ntree->id);
+ if (ntree->type != NTREE_GEOMETRY) {
+ /* This can probably be removed for all node tree types. It mainly exists because it was not
+ * possible to store id references in custom properties. Also see T36024. I don't want to
+ * remove it for all tree types in bcon3 though. */
+ id_us_ensure_real(&ntree->id);
+ }
}
/* update current tree */