mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 01:15:53 +08:00
SPE-2112 : Don't check an object units, when it was loaded from file with known units (3mf)
This commit is contained in:
parent
cda2446649
commit
85fa892c12
@ -2721,7 +2721,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
if (imperial_units)
|
if (imperial_units)
|
||||||
// Convert even if the object is big.
|
// Convert even if the object is big.
|
||||||
convert_from_imperial_units(model, false);
|
convert_from_imperial_units(model, false);
|
||||||
else if (model.looks_like_saved_in_meters()) {
|
else if (!type_3mf && model.looks_like_saved_in_meters()) {
|
||||||
auto convert_model_if = [](Model& model, bool condition) {
|
auto convert_model_if = [](Model& model, bool condition) {
|
||||||
if (condition)
|
if (condition)
|
||||||
//FIXME up-scale only the small parts?
|
//FIXME up-scale only the small parts?
|
||||||
@ -2743,7 +2743,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||||||
}
|
}
|
||||||
convert_model_if(model, answer_convert_from_meters == wxID_YES);
|
convert_model_if(model, answer_convert_from_meters == wxID_YES);
|
||||||
}
|
}
|
||||||
else if (model.looks_like_imperial_units()) {
|
else if (!type_3mf && model.looks_like_imperial_units()) {
|
||||||
auto convert_model_if = [convert_from_imperial_units](Model& model, bool condition) {
|
auto convert_model_if = [convert_from_imperial_units](Model& model, bool condition) {
|
||||||
if (condition)
|
if (condition)
|
||||||
//FIXME up-scale only the small parts?
|
//FIXME up-scale only the small parts?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user