mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 13:45:54 +08:00
Fixed conflicts after merge with dev branch
This commit is contained in:
commit
983a4de60d
@ -5022,6 +5022,7 @@ BoundingBoxf3 GLCanvas3D::_max_bounding_box(bool include_gizmos, bool include_be
|
|||||||
bb.merge(m_gcode_viewer.get_max_bounding_box());
|
bb.merge(m_gcode_viewer.get_max_bounding_box());
|
||||||
|
|
||||||
// clamp max bb size with respect to bed bb size
|
// clamp max bb size with respect to bed bb size
|
||||||
|
if (!m_picking_enabled) {
|
||||||
static const double max_scale_factor = 1.5;
|
static const double max_scale_factor = 1.5;
|
||||||
const Vec3d bb_size = bb.size();
|
const Vec3d bb_size = bb.size();
|
||||||
const Vec3d bed_bb_size = bed_bb.size();
|
const Vec3d bed_bb_size = bed_bb.size();
|
||||||
@ -5032,6 +5033,7 @@ BoundingBoxf3 GLCanvas3D::_max_bounding_box(bool include_gizmos, bool include_be
|
|||||||
const Vec3d extend_by = max_scale_factor * bed_bb_size;
|
const Vec3d extend_by = max_scale_factor * bed_bb_size;
|
||||||
bb = BoundingBoxf3(bed_bb_center - extend_by, bed_bb_center + extend_by);
|
bb = BoundingBoxf3(bed_bb_center - extend_by, bed_bb_center + extend_by);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return bb;
|
return bb;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user