FIX: Scale coordinate display axis is wrong after the rotation

STUDIO-2658

Change-Id: Ie3659ac29bdbc6f908fbd6fc3463d4498b1a1bbb
This commit is contained in:
zhimin.zeng authored and Lane.Wei committed 2023-07-07 17:29:08 +08:00
1 parent 0162f5f75a
commit dde886aae8
2 files changed
+7 -5

No files matched your search

+4 -3
View File
@@ -2423,9 +2423,10 @@ void ModelObject::bake_xy_rotation_into_meshes(size_t instance_idx)
assert(instance_idx < this->instances.size());
const Geometry::Transformation reference_trafo = this->instances[instance_idx]->get_transformation();
if (Geometry::is_rotation_ninety_degrees(reference_trafo.get_rotation()))
// nothing to do, scaling in the world coordinate space is possible in the representation of Geometry::Transformation.
return;
// BBS: As long as the rotation value changed, the rotation angle will be applied to the mesh.
//if (Geometry::is_rotation_ninety_degrees(reference_trafo.get_rotation()))
// // nothing to do, scaling in the world coordinate space is possible in the representation of Geometry::Transformation.
// return;
bool left_handed = reference_trafo.is_left_handed();
bool has_mirrorring = ! reference_trafo.get_mirror().isApprox(Vec3d(1., 1., 1.));