Allow dragging to specific folders in filesystem dock
This commit is contained in:
parent
a0cd8f187a
commit
6f76ef4bdd
3 changed files with 15 additions and 1 deletions
|
|
@ -5828,7 +5828,11 @@ PopupMenu *EditorNode::get_export_as_menu() {
|
|||
}
|
||||
|
||||
void EditorNode::_dropped_files(const Vector<String> &p_files) {
|
||||
String to_path = ProjectSettings::get_singleton()->globalize_path(FileSystemDock::get_singleton()->get_current_directory());
|
||||
String to_path = FileSystemDock::get_singleton()->get_folder_path_at_mouse_position();
|
||||
if (to_path.is_empty()) {
|
||||
to_path = FileSystemDock::get_singleton()->get_current_directory();
|
||||
}
|
||||
to_path = ProjectSettings::get_singleton()->globalize_path(to_path);
|
||||
|
||||
_add_dropped_files_recursive(p_files, to_path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue