From 38e8f345f5d054a41127870d8b853a613c961715 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 10 May 2019 14:04:43 +0200 Subject: [PATCH] Constrained gizmo-scaling -> fixed offset for uniform scale --- src/slic3r/GUI/Gizmos/GLGizmoScale.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoScale.cpp b/src/slic3r/GUI/Gizmos/GLGizmoScale.cpp index 5adf65278..32c272c30 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoScale.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoScale.cpp @@ -361,7 +361,10 @@ void GLGizmoScale3D::do_scale_uniform(const UpdateData& data) { double ratio = calc_ratio(data); if (ratio > 0.0) + { m_scale = m_starting.scale * ratio; + m_offset = Vec3d::Zero(); + } } double GLGizmoScale3D::calc_ratio(const UpdateData& data) const