mirror of
https://github.com/godotengine/godot-blender-exporter.git
synced 2026-01-05 18:10:04 +03:00
Fix invalid substitution in MixRgbNodeConverter
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user