[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42556] trunk/blender/source/blender/ editors/space_node/node_edit.c: In the node space context update function: Properly clear the snode->edittree pointer when no snode-> nodetree is active.
Lukas Toenne
lukas.toenne at googlemail.com
Sat Dec 10 16:52:16 CET 2011
Revision: 42556
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42556
Author: lukastoenne
Date: 2011-12-10 15:52:08 +0000 (Sat, 10 Dec 2011)
Log Message:
-----------
In the node space context update function: Properly clear the snode->edittree pointer when no snode->nodetree is active. This would lead to crash in operators when switching from an existing node tree, since the usual poll function only tests for the edittree.
Fixes bug #29566.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_node/node_edit.c
Modified: trunk/blender/source/blender/editors/space_node/node_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_edit.c 2011-12-10 14:45:30 UTC (rev 42555)
+++ trunk/blender/source/blender/editors/space_node/node_edit.c 2011-12-10 15:52:08 UTC (rev 42556)
@@ -483,6 +483,7 @@
}
else {
*ntree= NULL;
+ *edittree= NULL;
if(treetype) *treetype= 0;
}
}
More information about the Bf-blender-cvs
mailing list