diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-11-19 00:14:53 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-11-19 00:15:08 +0300 |
commit | 4de142e0b7ba014a3e1e41672600aa38465f2454 (patch) | |
tree | 3eeab2618767c86ad9cb976ffc3f147db5255d49 /source/blender/draw | |
parent | a96134d79417d05556bcad9a4425bf9056cef133 (diff) |
Eevee : Fix bug with SSS and SSR active node selection
The bug was affecting the ability to correctly edit the expected SSS profile.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_materials.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c index 23057bd91c0..b0e30109a7f 100644 --- a/source/blender/draw/engines/eevee/eevee_materials.c +++ b/source/blender/draw/engines/eevee/eevee_materials.c @@ -763,7 +763,7 @@ static struct DRWShadingGroup *EEVEE_default_shading_group_create( bool is_hair, bool is_flat_normal, bool use_blend, bool use_ssr, int shadow_method) { static int ssr_id; - ssr_id = (use_ssr) ? 0 : -1; + ssr_id = (use_ssr) ? 1 : -1; int options = VAR_MAT_MESH; if (is_hair) options |= VAR_MAT_HAIR; @@ -791,7 +791,7 @@ static struct DRWShadingGroup *EEVEE_default_shading_group_get( bool is_hair, bool is_flat_normal, bool use_ssr, int shadow_method) { static int ssr_id; - ssr_id = (use_ssr) ? 0 : -1; + ssr_id = (use_ssr) ? 1 : -1; int options = VAR_MAT_MESH; if (is_hair) options |= VAR_MAT_HAIR; |