mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve usage of String.split() vs get_slice()
This commit is contained in:
parent
2753d333f6
commit
d61a337a70
17 changed files with 45 additions and 50 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue