diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-05-11 21:28:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-05-11 21:32:19 +0300 |
commit | 868678c85f84f4bff11ab13dc6caa2d38cf1816a (patch) | |
tree | 5fa1fb8f2ee8fc18c1f0128473d4fa25d08691ae | |
parent | 77d633399c7a044190dfcc7f81daf5cda7dddab8 (diff) |
Fix T51449: empty node editor continuously redrawing and using CPU.
-rw-r--r-- | source/blender/editors/space_node/node_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index da28c55fb04..6fab8bf74bc 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -580,7 +580,8 @@ void snode_set_context(const bContext *C) } } - if (snode->nodetree != ntree || snode->id != id || snode->from != from || snode->treepath.last == NULL) { + if (snode->nodetree != ntree || snode->id != id || snode->from != from || + (snode->treepath.last == NULL && ntree)) { ED_node_tree_start(snode, ntree, id, from); } } |