summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2018-07-18 01:49:57 +0900
committervolzhs <volzhs@gmail.com>2018-07-18 01:49:57 +0900
commit4bb85b70e1b4bf6ccfba2e2c63e38879a5f09d10 (patch)
treeb9d73249810a0b4328c97b697ec977da99ab9240 /editor
parentabfa4b822bef869acbebb55e1659174623c3815e (diff)
Fix copying ttf, otf by DND to editor
regression from d65ac7378c77648124e0e8acd09cea8fd0d104cd
Diffstat (limited to '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 70bc090bc4..cae9c34fe0 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4189,7 +4189,7 @@ void EditorNode::_dropped_files(const Vector<String> &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());