Fix for NULL pointer bug, reported by Jens Verwiebe in IRC. ED_node_tag_update_id tries to get a node tree from the active id pointer, but this only works for standard node types, not for pynodes.

This commit is contained in:
Lukas Toenne 2013-04-21 18:11:00 +00:00
parent 54c6af6016
commit c44888bbbe

@ -109,7 +109,7 @@ static bNodeTree *node_tree_from_ID(ID *id)
void ED_node_tag_update_id(ID *id)
{
bNodeTree *ntree = node_tree_from_ID(id);
if (id == NULL)
if (id == NULL || ntree == NULL)
return;
if (ntree->type == NTREE_SHADER) {