Fix: crashes when slicing small objects with wipe_tower.
jira: STUDIO-10572 Change-Id: I37312673a87e542120ee7282c22f80e16c894cd9
This commit is contained in:
parent
e71adc067c
commit
8d32d29016
|
@ -188,6 +188,7 @@ public:
|
||||||
float get_depth() const { return m_wipe_tower_depth; }
|
float get_depth() const { return m_wipe_tower_depth; }
|
||||||
float get_brim_width() const { return m_wipe_tower_brim_width_real; }
|
float get_brim_width() const { return m_wipe_tower_brim_width_real; }
|
||||||
BoundingBoxf get_bbx() const {
|
BoundingBoxf get_bbx() const {
|
||||||
|
if (m_outer_wall.empty()) return BoundingBoxf({Vec2d(0,0)});
|
||||||
BoundingBox box = get_extents(m_outer_wall.begin()->second);
|
BoundingBox box = get_extents(m_outer_wall.begin()->second);
|
||||||
BoundingBoxf res = BoundingBoxf(unscale(box.min), unscale(box.max));
|
BoundingBoxf res = BoundingBoxf(unscale(box.min), unscale(box.max));
|
||||||
res.translate(m_rib_offset.cast<double>());
|
res.translate(m_rib_offset.cast<double>());
|
||||||
|
|
Loading…
Reference in New Issue