Add EditorInterface.get_selected_paths()
Exposes the selected paths in the editor filesystem dock. Implements this proposal : https://github.com/godotengine/godot-proposals/issues/2424 Also renamed the old `get_selected_path` to `get_selected_directory` to better match the already existing get_current_path function.
This commit is contained in:
parent
315c64282b
commit
4b00c2ec57
7 changed files with 36 additions and 17 deletions
|
|
@ -5763,7 +5763,7 @@ void EditorNode::_global_menu_new_window(const Variant &p_tag) {
|
|||
}
|
||||
|
||||
void EditorNode::_dropped_files(const Vector<String> &p_files) {
|
||||
String to_path = ProjectSettings::get_singleton()->globalize_path(FileSystemDock::get_singleton()->get_selected_path());
|
||||
String to_path = ProjectSettings::get_singleton()->globalize_path(FileSystemDock::get_singleton()->get_current_directory());
|
||||
|
||||
_add_dropped_files_recursive(p_files, to_path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue