Follow-up of 526233ca47 -> Take in account original instances scale factor

This commit is contained in:
enricoturri1966 2021-04-15 08:41:20 +02:00
parent dfe47aa4e4
commit 1e69e6def1

View File

@ -2425,7 +2425,7 @@ std::vector<size_t> Plater::priv::load_model_objects(const ModelObjectPtrs &mode
} }
else if (max_ratio > 5) { else if (max_ratio > 5) {
const Vec3d inverse = 1.0 / max_ratio * Vec3d::Ones(); const Vec3d inverse = 1.0 / max_ratio * Vec3d::Ones();
instance->set_scaling_factor(inverse); instance->set_scaling_factor(inverse.cwiseProduct(instance->get_scaling_factor()));
scaled_down = true; scaled_down = true;
} }
} }