summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-20 17:28:05 +0100
committerGitHub <noreply@github.com>2019-02-20 17:28:05 +0100
commit74ef11d404a3ae6f5c07638a6eb86cb2e4c572ef (patch)
treec56f35f9263ff789f403ac44322f288dd6ab658e
parent6b0ecb7266c437469ec57d67d2a65958506aa309 (diff)
parent2f0c4de1f00ed81398872153e02977e5e2686131 (diff)
Merge pull request #26061 from qarmin/fix_res_error
Fix res:// error when dragging file from outside of editor
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 0d1738c549..745be39df7 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(",");