Fix T65017 Eevee: Render error if a SSS node is unconnected

This commit is contained in:
Clément Foucault
2019-05-30 16:12:20 +02:00
parent b4df509f7b
commit f962c701fe

View File

@@ -139,7 +139,7 @@ static int node_shader_gpu_bsdf_principled(GPUMaterial *mat,
}
bool use_diffuse = socket_not_one(4) && socket_not_one(15);
bool use_subsurf = socket_not_zero(1) && use_diffuse;
bool use_subsurf = socket_not_zero(1) && use_diffuse && node->sss_id == 1;
bool use_refract = socket_not_one(4) && socket_not_zero(15);
bool use_clear = socket_not_zero(12);