From 56996104cc8f1e52ef8e0057c350400a67658e60 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Mon, 4 Oct 2021 09:30:30 +0200 Subject: [PATCH] fix assert --- src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp index 9e4c71d2f..e5f42e9a9 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp @@ -481,9 +481,9 @@ void GLGizmoSimplify::render_wireframe() const const GLVolume *selected_volume = m_parent.get_selection().get_volume(0); - // check selected_volume == act_volume + // check selected_volume == m_volume const auto& cid = selected_volume->composite_id; - assert(wxGetApp().plater()->model().objects[cid.object_id]->volumes[cid.volume_id] == act_volume); + assert(wxGetApp().plater()->model().objects[cid.object_id]->volumes[cid.volume_id] == m_volume); const Transform3d trafo_matrix = m_parent.get_selection().get_volume(0)->world_matrix();