diff options
author | cespeute <espeut.clement@gmail.com> | 2022-05-10 22:25:36 +0200 |
---|---|---|
committer | Valden <espeut.clement@gmail.com> | 2022-11-14 22:46:27 +0100 |
commit | 4b00c2ec57317d71c8e1b217952715c1b6006648 (patch) | |
tree | c12059ead0a9ca190de69fbfd999bcdc479e405e /editor/editor_node.cpp | |
parent | 315c64282bb8d24963104c6386f0a82dc5ccb777 (diff) |
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.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 24ed0fff93..cbad9aa737 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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); |