Merge pull request #42791 from Faless/editor/drag_drop_copy_all
EditorNode now copies all drag and dropped files.
This commit is contained in:
commit
b84f9b0068
1 changed files with 0 additions and 4 deletions
|
@ -5122,7 +5122,6 @@ void EditorNode::_dropped_files(const Vector<String> &p_files, int p_screen) {
|
|||
|
||||
void EditorNode::_add_dropped_files_recursive(const Vector<String> &p_files, String to_path) {
|
||||
DirAccessRef dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||
Vector<String> just_copy = String("ttf,otf").split(",");
|
||||
|
||||
for (int i = 0; i < p_files.size(); i++) {
|
||||
String from = p_files[i];
|
||||
|
@ -5153,9 +5152,6 @@ void EditorNode::_add_dropped_files_recursive(const Vector<String> &p_files, Str
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!ResourceFormatImporter::get_singleton()->can_be_imported(from) && (just_copy.find(from.get_extension().to_lower()) == -1)) {
|
||||
continue;
|
||||
}
|
||||
dir->copy(from, to);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue