diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2020-04-20 10:15:52 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2020-04-20 10:17:48 +0300 |
commit | 40e4be6ede7a2140cf114eab5e8fd1dd9098effe (patch) | |
tree | b7374d6992395f9556df1e4b239b0bb6639da8bd | |
parent | b5fcc234605cfde0c1dd8ac4955567ade9ec7aa8 (diff) |
Fixed a crash in the FDM supports gizmo when the wipe tower was shown
The crash happened during showing/hiding of volumes, which historically assumed to always run in SLA mode and so did not expect to encounter the wipe tower.
-rw-r--r-- | src/slic3r/GUI/GLCanvas3D.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 9127fcaf4..e2cac93df 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1743,6 +1743,8 @@ void GLCanvas3D::toggle_sla_auxiliaries_visibility(bool visible, const ModelObje m_render_sla_auxiliaries = visible; for (GLVolume* vol : m_volumes.volumes) { + if (vol->composite_id.object_id == 1000) + continue; // the wipe tower if ((mo == nullptr || m_model->objects[vol->composite_id.object_id] == mo) && (instance_idx == -1 || vol->composite_id.instance_id == instance_idx) && vol->composite_id.volume_id < 0) |