Browse Source

Fixes Texture2dParameter node filter option

This bug was appending 2 colons in the generated code.  Fixed it.
biswas08433 1 year ago
parent
commit
92fe4bb693
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/resources/visual_shader_nodes.cpp

+ 2 - 0
scene/resources/visual_shader_nodes.cpp

@@ -6346,6 +6346,7 @@ String get_sampler_hint(VisualShaderNodeTextureParameter::TextureType p_texture_
 		if (!repeat_code.is_empty()) {
 		if (!repeat_code.is_empty()) {
 			if (!has_colon) {
 			if (!has_colon) {
 				code += " : ";
 				code += " : ";
+				has_colon = true;
 			} else {
 			} else {
 				code += ", ";
 				code += ", ";
 			}
 			}
@@ -6353,6 +6354,7 @@ String get_sampler_hint(VisualShaderNodeTextureParameter::TextureType p_texture_
 		}
 		}
 	}
 	}
 
 
+	// source
 	{
 	{
 		String source_code;
 		String source_code;