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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-02-23 13:23:49 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-02-23 13:23:49 +0300
commit9eb647f1c8d8d7ea7da8f7dff7c19a2008afe26c (patch)
treec259004f5f4ae373b60c14b2ddb89ac9c711aba3
parent60592f67781ebf1a73402241a4ebb5d9e4b95d91 (diff)
Fix T50656: Compositing node editor is empty, no nodes can be added
-rw-r--r--source/blender/editors/space_node/node_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index ffe510016ff..8a61857675c 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -582,7 +582,7 @@ void snode_set_context(const bContext *C)
}
}
- if (snode->nodetree != ntree || snode->id != id || snode->from != from) {
+ if (snode->nodetree != ntree || snode->id != id || snode->from != from || snode->treepath.last == NULL) {
ED_node_tree_start(snode, ntree, id, from);
}