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
Notes: blender-bot 2023-02-14 11:21:40 +01:00
Referenced by issue #51449, High CPU usage when removing material from object
Referenced by issue #50656, Compositing node editor is empty, no nodes can be added
1 changed files with 1 additions and 1 deletions

View File

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