Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-12-16 19:50:36 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-12-16 19:50:36 +0300
commit13566e3f933a39a080d6b31f405e853133930333 (patch)
treea6f5b88e6fa43887a5b2e2a2e463ebbfab8f9ce1
parent65053fd77662d2cc3fc8fbd058ffbcfca53acd1a (diff)
Follow-up to acee3ff1f98ddff7c3a97a72f97fa20c88b4440d
Fixed crash when changing modifier type on a circular printbed
-rw-r--r--src/slic3r/GUI/GLCanvas3D.cpp5
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());
}
}
}