avoid cleanup for non-loadable assets
This commit is contained in:
parent
4c3dc26367
commit
3770ee3c9e
|
@ -499,12 +499,15 @@ void ImportDock::_reimport_attempt() {
|
|||
|
||||
String imported_with = config->get_value("remap", "importer");
|
||||
if (imported_with != importer_name) {
|
||||
Ref<Resource> resource = ResourceLoader::load(params->paths[i]);
|
||||
if (resource.is_valid()) {
|
||||
need_cleanup.push_back(params->paths[i]);
|
||||
if (_find_owners(EditorFileSystem::get_singleton()->get_filesystem(), params->paths[i])) {
|
||||
used_in_resources = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!need_cleanup.is_empty() || used_in_resources) {
|
||||
cleanup_warning->set_visible(!need_cleanup.is_empty());
|
||||
|
|
Loading…
Reference in New Issue