From 92fe4bb69307145d1470d278920ce17a1611093d Mon Sep 17 00:00:00 2001 From: biswas08433 Date: Sun, 12 Nov 2023 01:59:53 +0530 Subject: [PATCH] Fixes Texture2dParameter node filter option This bug was appending 2 colons in the generated code. Fixed it. --- scene/resources/visual_shader_nodes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/resources/visual_shader_nodes.cpp b/scene/resources/visual_shader_nodes.cpp index 71b8af6625a..ccd730eef2e 100644 --- a/scene/resources/visual_shader_nodes.cpp +++ b/scene/resources/visual_shader_nodes.cpp @@ -6346,6 +6346,7 @@ String get_sampler_hint(VisualShaderNodeTextureParameter::TextureType p_texture_ if (!repeat_code.is_empty()) { if (!has_colon) { code += " : "; + has_colon = true; } else { code += ", "; } @@ -6353,6 +6354,7 @@ String get_sampler_hint(VisualShaderNodeTextureParameter::TextureType p_texture_ } } + // source { String source_code;