Fix error when compiling with msvc
'function': incompatible types - from 'int *' to 'short *'
This commit is contained in:
parent
936ddde35c
commit
f60563dd91
|
@ -100,7 +100,7 @@ static int node_shader_gpu_bsdf_principled(GPUMaterial *mat, bNode *node, bNodeE
|
|||
|
||||
/* SSS Profile */
|
||||
if (node->sss_id == 0) {
|
||||
static int profile = SHD_SUBSURFACE_BURLEY;
|
||||
static short profile = SHD_SUBSURFACE_BURLEY;
|
||||
bNodeSocket *socket = BLI_findlink(&node->original->inputs, 2);
|
||||
bNodeSocketValueRGBA *socket_data = socket->default_value;
|
||||
/* For some reason it seems that the socket value is in ARGB format. */
|
||||
|
|
Loading…
Reference in New Issue