FIX:If version information cannot be read, prompt 'The 3mf is not from Bambu Lab'
jira: none Change-Id: Ief8164e86ba2d1db551ec91980f41aa4de7286b8
This commit is contained in:
parent
9ee3b48d37
commit
66f0965cd0
|
@ -5284,8 +5284,12 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
||||||
}
|
}
|
||||||
else if (load_config && config_loaded.empty()) {
|
else if (load_config && config_loaded.empty()) {
|
||||||
load_config = false;
|
load_config = false;
|
||||||
|
if (file_version.maj() == 0 && file_version.min() == 0 && file_version.patch() == 0) {
|
||||||
|
show_info(q, _L("The 3mf is not from Bambu Lab, load geometry data only."), _L("Load 3mf"));
|
||||||
|
} else {
|
||||||
show_info(q, _L("The 3mf is generated by old Bambu Studio, load geometry data only."), _L("Load 3mf"));
|
show_info(q, _L("The 3mf is generated by old Bambu Studio, load geometry data only."), _L("Load 3mf"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (!load_config) {
|
else if (!load_config) {
|
||||||
// reset config except color
|
// reset config except color
|
||||||
for (ModelObject *model_object : model.objects) {
|
for (ModelObject *model_object : model.objects) {
|
||||||
|
|
Loading…
Reference in New Issue