Fix #31272: Blender Crashes when press render

Issue was caused by missed libraries. Seems compositor nodes already does check
in such cases, added the same check to texture and shader nodes.
This commit is contained in:
Sergey Sharybin
2012-05-03 12:55:18 +00:00
parent eec8de9469
commit d10da0fbd2
2 changed files with 6 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ static void *group_initexec(bNode *node)
bNodeTree *ngroup= (bNodeTree*)node->id;
bNodeTreeExec *exec;
if (!ngroup)
return NULL;
/* initialize the internal node tree execution */
exec = ntreeShaderBeginExecTree(ngroup, 0);

View File

@@ -58,6 +58,9 @@ static void *group_initexec(bNode *node)
bNodeTree *ngroup= (bNodeTree*)node->id;
void *exec;
if (!ngroup)
return NULL;
/* initialize the internal node tree execution */
exec = ntreeTexBeginExecTree(ngroup, 0);