diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 661d276cb..fbd41e57a 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -918,7 +918,7 @@ void GLCanvas3D::SequentialPrintClearance::set_contours(const ContoursList& cont if (contours.trafos.has_value()) { // create the requested instances - for (const auto& instance : contours.trafos.value()) { + for (const auto& instance : *contours.trafos) { m_instances.emplace_back(instance.first, instance.second); } } @@ -4517,7 +4517,7 @@ void GLCanvas3D::update_sequential_clearance(bool force_contours_generation) ContoursList contours; contours.contours.reserve(instance_transforms.size()); contours.trafos = std::vector>(); - contours.trafos.value().reserve(instances_count); + (*contours.trafos).reserve(instances_count); for (size_t i = 0; i < instance_transforms.size(); ++i) { const auto& [hull, hull_trafo] = m_sequential_print_clearance.m_hulls_2d_cache[i]; Points hull_pts; @@ -4529,7 +4529,7 @@ void GLCanvas3D::update_sequential_clearance(bool force_contours_generation) const auto& instances = instance_transforms[i]; for (const auto& instance : instances) { - contours.trafos.value().emplace_back(i, instance_trafo(hull_trafo, instance.value())); + (*contours.trafos).emplace_back(i, instance_trafo(hull_trafo, *instance)); } } @@ -4544,7 +4544,7 @@ void GLCanvas3D::update_sequential_clearance(bool force_contours_generation) const auto& [hull, hull_trafo] = m_sequential_print_clearance.m_hulls_2d_cache[i]; const auto& instances = instance_transforms[i]; for (const auto& instance : instances) { - trafos.emplace_back(instance_trafo(hull_trafo, instance.value())); + trafos.emplace_back(instance_trafo(hull_trafo, *instance)); } } m_sequential_print_clearance.update_instances_trafos(trafos);