Extended limits in z for camera target movements - Fix of #1589
This commit is contained in:
parent
f013972d8b
commit
153c6e7f68
1 changed files with 6 additions and 0 deletions
|
@ -3979,6 +3979,12 @@ BoundingBoxf3 GLCanvas3D::scene_bounding_box() const
|
||||||
{
|
{
|
||||||
BoundingBoxf3 bb = volumes_bounding_box();
|
BoundingBoxf3 bb = volumes_bounding_box();
|
||||||
bb.merge(m_bed.get_bounding_box());
|
bb.merge(m_bed.get_bounding_box());
|
||||||
|
if (m_config != nullptr)
|
||||||
|
{
|
||||||
|
double h = m_config->opt_float("max_print_height");
|
||||||
|
bb.min(2) = std::min(bb.min(2), -h);
|
||||||
|
bb.max(2) = std::max(bb.max(2), h);
|
||||||
|
}
|
||||||
return bb;
|
return bb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue