Fixed import from 3mf of rotated models

This commit is contained in:
Enrico Turri 2018-12-14 09:52:15 +01:00
parent f3e238073b
commit 07943ae669
2 changed files with 2 additions and 2 deletions

View File

@ -1876,7 +1876,7 @@ namespace Slic3r {
vertices_count += stl.stats.shared_vertices;
#if ENABLE_MODELVOLUME_TRANSFORM
Transform3d matrix = volume->get_matrix();
const Transform3d& matrix = volume->get_matrix();
#endif // ENABLE_MODELVOLUME_TRANSFORM
for (int i = 0; i < stl.stats.shared_vertices; ++i)

View File

@ -512,7 +512,7 @@ void Model::adjust_min_z()
{
coordf_t obj_min_z = obj->bounding_box().min(2);
if (obj_min_z < 0.0)
obj->translate(0.0, 0.0, -obj_min_z);
obj->translate_instances(Vec3d(0.0, 0.0, -obj_min_z));
}
}
}