You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Improve usage of String.split() vs get_slice()
This commit is contained in:
@@ -492,7 +492,7 @@ void ScriptCreateDialog::_file_selected(const String &p_file) {
|
||||
}
|
||||
|
||||
void ScriptCreateDialog::_create() {
|
||||
parent_name->set_text(select_class->get_selected_type().split(" ")[0]);
|
||||
parent_name->set_text(select_class->get_selected_type().get_slicec(' ', 0));
|
||||
_parent_name_changed(parent_name->get_text());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user