From 13566e3f933a39a080d6b31f405e853133930333 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 16 Dec 2021 17:50:36 +0100 Subject: Follow-up to acee3ff1f98ddff7c3a97a72f97fa20c88b4440d Fixed crash when changing modifier type on a circular printbed --- src/slic3r/GUI/GLCanvas3D.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 9b1483987..a3b54a841 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1871,7 +1871,10 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re volume->set_volume_transformation(mvs->model_volume->get_transformation()); // updates volumes convex hull - volume->set_convex_hull(mvs->model_volume->get_convex_hull_shared_ptr()); + if (mvs->model_volume->is_model_part() && ! volume->convex_hull()) + // Model volume was likely changed from modifier or support blocker / enforcer to a model part. + // Only model parts require convex hulls. + volume->set_convex_hull(mvs->model_volume->get_convex_hull_shared_ptr()); } } } -- cgit v1.2.3