Modified render order of gizmos

This commit is contained in:
Enrico Turri 2018-08-24 12:06:05 +02:00
parent 7f542a0f85
commit 5f6a8adf7c
2 changed files with 4 additions and 2 deletions

View file

@ -837,7 +837,7 @@ void GLGizmoScale3D::on_render(const BoundingBoxf3& box) const
{
::glEnable(GL_DEPTH_TEST);
Vec3d offset_vec((double)Offset, (double)Offset, (double)Offset);
Vec3d offset_vec = (double)Offset * Vec3d::Ones();
m_box = BoundingBoxf3(box.min - offset_vec, box.max + offset_vec);
const Vec3d& center = m_box.center();