Merge pull request #7111 from volzhs/crash-import-scene
Fix crash when select target path on import 3d scene window
This commit is contained in:
commit
bbc71083c1
2 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ void EditorDirDialog::set_current_path(const String& p_path) {
|
|||
if (p.begins_with("res://"))
|
||||
p = p.replace_first("res://","");
|
||||
|
||||
Vector<String> dirs = p.split("/");
|
||||
Vector<String> dirs = p.split("/",false);
|
||||
|
||||
TreeItem *r=tree->get_root();
|
||||
for(int i=0;i<dirs.size();i++) {
|
||||
|
|
|
@ -894,9 +894,9 @@ void EditorSceneImportDialog::_browse() {
|
|||
|
||||
void EditorSceneImportDialog::_browse_target() {
|
||||
|
||||
save_select->popup_centered_ratio();
|
||||
if (save_path->get_text()!="")
|
||||
save_select->set_current_path(save_path->get_text());
|
||||
save_select->popup_centered_ratio();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue