Fix error when compiling with msvc

'function': incompatible types - from 'int *' to 'short *'
This commit is contained in:
Germano Cavalcante 2017-11-17 00:30:07 -02:00
parent 936ddde35c
commit f60563dd91
1 changed files with 1 additions and 1 deletions

View File

@ -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. */