Fix copying ttf, otf by DND to editor

regression from d65ac7378c

(cherry picked from commit 4bb85b70e1)
This commit is contained in:
volzhs 2018-07-18 01:49:57 +09:00 committed by Rémi Verschelde
parent 47c7bfd678
commit fd5dca2689
1 changed files with 1 additions and 1 deletions

View File

@ -4447,7 +4447,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());