mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 22:32:55 +02:00
Removed check of max rotation close to zero in GLCanvas3D::Selection::rotate()
This commit is contained in:
1 parent
1550ee0e2b
commit
6f25a933b6
1 file changed
+4
-2
@@ -1804,10 +1804,12 @@ static double rotation_diff_z(const Vec3d &rot_xyz_from, const Vec3d &rot_xyz_to
|
||||
|
||||
void GLCanvas3D::Selection::rotate(const Vec3d& rotation, bool local)
|
||||
{
|
||||
int rot_axis_max;
|
||||
if (!m_valid || rotation.cwiseAbs().maxCoeff(&rot_axis_max) < EPSILON)
|
||||
if (!m_valid)
|
||||
return;
|
||||
|
||||
int rot_axis_max;
|
||||
rotation.cwiseAbs().maxCoeff(&rot_axis_max);
|
||||
|
||||
// For generic rotation, we want to rotate the first volume in selection, and then to synchronize the other volumes with it.
|
||||
std::vector<int> object_instance_first(m_model->objects.size(), -1);
|
||||
auto rotate_instance = [this, &rotation, &object_instance_first, rot_axis_max, local](GLVolume &volume, int i) {
|
||||
|
||||
Reference in new issue
Block a user