Fix T50656: Compositing node editor is empty, no nodes can be added

This commit is contained in:
Sergey Sharybin 2017-02-23 11:23:49 +01:00
parent 60592f6778
commit 9eb647f1c8

@ -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);
}