Fix T38355: Crash with Shader Node Group with missing datablock,

only in "Material" viewport shading.
This commit is contained in:
Lukas Tönne 2014-01-27 12:26:49 +01:00
parent 31d679b667
commit 21c56f754f
Notes: blender-bot 2023-02-14 11:18:00 +01:00
Referenced by issue #38355, Crash with Shader Node Group with missing datablock, only in "Material" viewport shading.
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ static int gpu_group_execute(GPUMaterial *mat, bNode *node, bNodeExecData *execd
{
bNodeTreeExec *exec = execdata->data;
if (!node->id)
return 0;
group_gpu_copy_inputs(node, in, exec->stack);
#if 0 /* XXX NODE_GROUP_EDIT is deprecated, depends on node space */
ntreeExecGPUNodes(exec, mat, (node->flag & NODE_GROUP_EDIT));