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.
This commit is contained in:
Lukas Toenne
2011-12-10 15:52:08 +00:00
parent a912afd202
commit 33b1939aee

View File

@@ -483,6 +483,7 @@ void node_tree_from_ID(ID *id, bNodeTree **ntree, bNodeTree **edittree, int *tre
}
else {
*ntree= NULL;
*edittree= NULL;
if(treetype) *treetype= 0;
}
}