You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
String: Add contains().
This commit is contained in:
@@ -3044,7 +3044,7 @@ String VisualShaderNodeOutput::generate_code(Shader::Mode p_mode, VisualShader::
|
||||
if (ports[idx].mode == shader_mode && ports[idx].shader_type == shader_type) {
|
||||
if (!p_input_vars[count].is_empty()) {
|
||||
String s = ports[idx].string;
|
||||
if (s.find(":") != -1) {
|
||||
if (s.contains(":")) {
|
||||
code += " " + s.get_slicec(':', 0) + " = " + p_input_vars[count] + "." + s.get_slicec(':', 1) + ";\n";
|
||||
} else {
|
||||
code += " " + s + " = " + p_input_vars[count] + ";\n";
|
||||
|
||||
Reference in New Issue
Block a user