diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-11-15 19:44:14 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-11-15 19:52:40 +0300 |
commit | cfb6f14616ecd96831815b48c7edfdd706ddcf2e (patch) | |
tree | 85af2e6d5562130b4e2c7adcf2afc731ec622baf /release/scripts/modules | |
parent | e6276e1748912183ca87df21f0efdeefd77639f7 (diff) |
Fix node_shader_utils: "Specular Tint" is a float (not a color)
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy_extras/node_shader_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy_extras/node_shader_utils.py b/release/scripts/modules/bpy_extras/node_shader_utils.py index d06d66d3cb5..049ae7209c7 100644 --- a/release/scripts/modules/bpy_extras/node_shader_utils.py +++ b/release/scripts/modules/bpy_extras/node_shader_utils.py @@ -306,12 +306,12 @@ class PrincipledBSDFWrapper(ShaderWrapper): def specular_tint_get(self): if not self.use_nodes or self.node_principled_bsdf is None: return 0.0 - return rgba_to_rgb(self.node_principled_bsdf.inputs["Specular Tint"].default_value) + return self.node_principled_bsdf.inputs["Specular Tint"].default_value @_set_check def specular_tint_set(self, value): if self.use_nodes and self.node_principled_bsdf is not None: - self.node_principled_bsdf.inputs["Specular Tint"].default_value = rgb_to_rgba(value) + self.node_principled_bsdf.inputs["Specular Tint"].default_value = value specular_tint = property(specular_tint_get, specular_tint_set) |