diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-02-19 17:21:05 +0100 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-02-19 17:21:05 +0100 |
commit | 2f0c4de1f00ed81398872153e02977e5e2686131 (patch) | |
tree | e2355c8cbcdf0594de038e80350ad4b141907ec3 | |
parent | 1174d10e3c8f84e15dd6c5e795b5a6679c64c59c (diff) |
Fix res:// error when dragging file to other file
-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 973b2cc7a2..7a1b568e83 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4419,7 +4419,7 @@ void EditorNode::remove_tool_menu_item(const String &p_name) { void EditorNode::_dropped_files(const Vector<String> &p_files, int p_screen) { - String to_path = ProjectSettings::get_singleton()->globalize_path(get_filesystem_dock()->get_current_path()); + String to_path = ProjectSettings::get_singleton()->globalize_path(get_filesystem_dock()->get_selected_path()); DirAccessRef dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); Vector<String> just_copy = String("ttf,otf").split(","); |