Improve usage of String.split() vs get_slice()
This commit is contained in:
1 parent
2753d333f6
commit
d61a337a70
17 files changed
+45
-50
No files matched your search
@@ -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