fix assert

This commit is contained in:
Filip Sykala 2021-10-04 09:30:30 +02:00
parent f97d6a442b
commit 56996104cc

View File

@ -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();