diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2016-11-14 08:28:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 08:28:20 +0100 |
commit | bbc71083c1616047e4ef571a25d254034c69ef33 (patch) | |
tree | 964fba816729c62c007be1ef33bbc1aba2f84db1 /tools | |
parent | d314c24d72e7eef62fde6e6e58805407d1443042 (diff) | |
parent | b0cf201ea3beb473fd0498c5c7ec3b98feda88b9 (diff) |
Merge pull request #7111 from volzhs/crash-import-scene
Fix crash when select target path on import 3d scene window
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/editor_dir_dialog.cpp | 2 | ||||
-rw-r--r-- | tools/editor/io_plugins/editor_scene_import_plugin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/editor_dir_dialog.cpp b/tools/editor/editor_dir_dialog.cpp index cf0732501e..a6a6e11142 100644 --- a/tools/editor/editor_dir_dialog.cpp +++ b/tools/editor/editor_dir_dialog.cpp @@ -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++) { diff --git a/tools/editor/io_plugins/editor_scene_import_plugin.cpp b/tools/editor/io_plugins/editor_scene_import_plugin.cpp index cb8ec6d0bc..093f37fe00 100644 --- a/tools/editor/io_plugins/editor_scene_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_scene_import_plugin.cpp @@ -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(); } |