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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-05-11 21:28:39 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-05-11 21:32:19 +0300
commit868678c85f84f4bff11ab13dc6caa2d38cf1816a (patch)
tree5fa1fb8f2ee8fc18c1f0128473d4fa25d08691ae /source/blender/editors/space_node
parent77d633399c7a044190dfcc7f81daf5cda7dddab8 (diff)
Fix T51449: empty node editor continuously redrawing and using CPU.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/node_edit.c3
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);
}
}