1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Improve usage of String.split() vs get_slice()

This commit is contained in:
kobewi
2023-09-27 22:37:24 +02:00
parent 2753d333f6
commit d61a337a70
17 changed files with 45 additions and 50 deletions

View File

@@ -1668,7 +1668,7 @@ void VisualShaderEditor::add_custom_type(const String &p_name, const String &p_t
ao.is_native = !p_type.is_empty();
bool begin = false;
String root = p_category.split("/")[0];
String root = p_category.get_slicec('/', 0);
for (int i = 0; i < add_options.size(); i++) {
if (add_options[i].is_custom) {