#8401 - Show error message when trying to import invalid 3mf

This commit is contained in:
enricoturri1966 2022-06-14 12:17:03 +02:00
parent 91a5ceb1dd
commit 040a8467bd

View File

@ -3200,7 +3200,8 @@ bool load_3mf(const char* path, DynamicPrintConfig& config, ConfigSubstitutionCo
bool res = importer.load_model_from_file(path, *model, config, config_substitutions, check_version);
importer.log_errors();
handle_legacy_project_loaded(importer.version(), config);
return res;
return !model->objects.empty() || !config.empty();
}
bool store_3mf(const char* path, Model* model, const DynamicPrintConfig* config, bool fullpath_sources, const ThumbnailData* thumbnail_data, bool zip64)