diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-16 19:50:36 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-12-16 19:50:36 +0300 |
commit | 13566e3f933a39a080d6b31f405e853133930333 (patch) | |
tree | a6f5b88e6fa43887a5b2e2a2e463ebbfab8f9ce1 /src/slic3r/GUI | |
parent | 65053fd77662d2cc3fc8fbd058ffbcfca53acd1a (diff) |
Follow-up to acee3ff1f98ddff7c3a97a72f97fa20c88b4440d
Fixed crash when changing modifier type on a circular printbed
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r-- | src/slic3r/GUI/GLCanvas3D.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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()); } } } |