Fixed import from 3mf of rotated models
This commit is contained in:
parent
f3e238073b
commit
07943ae669
@ -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)
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user