#8401 - Show error message when trying to import invalid 3mf
This commit is contained in:
parent
91a5ceb1dd
commit
040a8467bd
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
bool res = importer.load_model_from_file(path, *model, config, config_substitutions, check_version);
|
||||||
importer.log_errors();
|
importer.log_errors();
|
||||||
handle_legacy_project_loaded(importer.version(), config);
|
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)
|
bool store_3mf(const char* path, Model* model, const DynamicPrintConfig* config, bool fullpath_sources, const ThumbnailData* thumbnail_data, bool zip64)
|
||||||
|
|
Loading…
Reference in a new issue