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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user