Fix T46415: empty node group in GLSL shader has incorrect socket type conversion.

This commit is contained in:
Brecht Van Lommel 2015-10-09 01:26:32 +02:00
parent 05ee31e38c
commit 103e38cbec
Notes: blender-bot 2023-02-14 08:33:30 +01:00
Referenced by issue #46415, Bad convertion Value to Color with empty Shader Node Group in Viewport.
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ void node_gpu_stack_from_data(struct GPUNodeStack *gs, int type, bNodeStack *ns)
{
memset(gs, 0, sizeof(*gs));
copy_v4_v4(gs->vec, ns->vec);
nodestack_get_vec(gs->vec, type, ns);
gs->link = ns->data;
if (type == SOCK_FLOAT)