Fix invalid substitution in MixRgbNodeConverter

This commit is contained in:
Rémi Verschelde
2019-11-22 14:27:11 +01:00
parent 90973e31c2
commit acc2f38109

View File

@@ -718,7 +718,7 @@ class MixRgbNodeConverter(NodeConverterBase):
mix_func = find_function_by_name(rgb_mix_func_name)
if mix_func is None:
# TODO: supportt all the blend types
# TODO: support all the blend types
warning_str = 'blend type %s not supported at %s, fall back to ' \
'blend type MIX' % (self.bl_node.blend_type, self.bl_node.name)
logging.warning(warning_str)
@@ -735,7 +735,7 @@ class MixRgbNodeConverter(NodeConverterBase):
self.add_function_call(mix_func, in_args, out_args)
if self.bl_node.use_clamp:
self.local_code.append("%s = clamp(%s, vec4(0.0), vec4(1.0))")
self.local_code.append("%s = clamp(%s, vec4(0.0), vec4(1.0))" % (out_color_id, out_color_id))
self.out_sockets_map[out_color_socket] = out_color_id