We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f9dc89 + 529a5a3 commit 74ee47eCopy full SHA for 74ee47e
editor/inspector/editor_resource_picker.cpp
@@ -737,9 +737,11 @@ bool EditorResourcePicker::_is_drop_valid(const Dictionary &p_drag_data) const {
737
} else if (drag_data.has("type") && String(drag_data["type"]) == "files") {
738
Vector<String> files = drag_data["files"];
739
740
- // TODO: Extract the typename of the dropped filepath's resource in a more performant way, without fully loading it.
741
if (files.size() == 1) {
742
- res = ResourceLoader::load(files[0]);
+ if (ResourceLoader::exists(files[0])) {
+ // TODO: Extract the typename of the dropped filepath's resource in a more performant way, without fully loading it.
743
+ res = ResourceLoader::load(files[0]);
744
+ }
745
}
746
747
0 commit comments