From fd5dca2689932160cf2f709d1f0110575cdda9b6 Mon Sep 17 00:00:00 2001 From: volzhs Date: Wed, 18 Jul 2018 01:49:57 +0900 Subject: [PATCH] Fix copying ttf, otf by DND to editor regression from d65ac7378c77648124e0e8acd09cea8fd0d104cd (cherry picked from commit 4bb85b70e1b4bf6ccfba2e2c63e38879a5f09d10) --- editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index c007a27068b..08887f92d54 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4447,7 +4447,7 @@ void EditorNode::_dropped_files(const Vector &p_files, int p_screen) { for (int i = 0; i < p_files.size(); i++) { String from = p_files[i]; - if (!ResourceFormatImporter::get_singleton()->can_be_imported(from) && (just_copy.find(from.get_extension().to_lower()) != -1)) { + if (!ResourceFormatImporter::get_singleton()->can_be_imported(from) && (just_copy.find(from.get_extension().to_lower()) == -1)) { continue; } String to = to_path.plus_file(from.get_file());