mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 18:03:35 +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
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue