Fixed flatten gizmo's flattening normal

This commit is contained in:
Enrico Turri 2018-09-05 14:02:08 +02:00
parent 407aee9942
commit 011281068b
3 changed files with 5 additions and 8 deletions

View file

@ -1282,7 +1282,7 @@ bool GLGizmoFlatten::is_plane_update_necessary() const
Vec3d GLGizmoFlatten::get_flattening_normal() const {
Vec3d normal = m_model_object->instances.front()->world_matrix().matrix().block(0, 0, 3, 3) * m_normal;
m_normal = Vec3d::Zero();
return normal;
return normal.normalized();
}
} // namespace GUI