Constrained gizmo-scaling -> fixed offset for uniform scale

This commit is contained in:
Enrico Turri 2019-05-10 14:04:43 +02:00
parent 3432218e8b
commit 38e8f345f5

View File

@ -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