Fix T46415: empty node group in GLSL shader has incorrect socket type conversion.
This commit is contained in:
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.
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue