Fixed a crash on deleting object with SLA gizmo active

Rephrased text informing about hidden objects in both SLA gizmos
This commit is contained in:
Lukas Matena committed 2020-02-04 15:03:10 +01:00
1 parent 0e3ebb3e07
commit 617912ecc1
2 files changed
+3 -1

No files matched your search

@@ -1291,6 +1291,8 @@ bool GLGizmoSlaSupports::unsaved_changes() const
void GLGizmoSlaSupports::update_clipping_plane(bool keep_normal) const
{
if (! m_c->m_model_object)
return;
Vec3d normal = (keep_normal && m_c->m_clipping_plane->get_normal() != Vec3d::Zero() ?
m_c->m_clipping_plane->get_normal() : -m_parent.get_camera().get_dir_forward());