[Bf-blender-cvs] [868678c85f8] master: Fix T51449: empty node editor continuously redrawing and using CPU.

Brecht Van Lommel noreply at git.blender.org
Thu May 11 20:34:00 CEST 2017


Commit: 868678c85f84f4bff11ab13dc6caa2d38cf1816a
Author: Brecht Van Lommel
Date:   Thu May 11 20:28:39 2017 +0200
Branches: master
https://developer.blender.org/rB868678c85f84f4bff11ab13dc6caa2d38cf1816a

Fix T51449: empty node editor continuously redrawing and using CPU.

===================================================================

M	source/blender/editors/space_node/node_edit.c

===================================================================

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




More information about the Bf-blender-cvs mailing list