GPU: Fix wrong socket value struct

This was causing bad behavior of the node Normal.
This commit is contained in:
Clément Foucault 2018-11-06 20:49:50 +01:00
parent d6908471c0
commit 57b4e122fc
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ static GPUNodeLink *gpu_uniformbuffer_link(
}
case SOCK_VECTOR:
{
bNodeSocketValueRGBA *socket_data = socket->default_value;
bNodeSocketValueVector *socket_data = socket->default_value;
link = GPU_uniform(socket_data->value);
break;
}