mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-10 03:22:25 +00:00
Forced zoom to bed when changing bed size
This commit is contained in:
1 parent
34cf541e0d
commit
aa22f75829
1 file changed
+1
-7
@@ -3322,13 +3322,7 @@ void GLCanvas3D::set_bed_shape(const Pointfs& shape)
|
|||||||
set_axes_length(0.3f * (float)m_bed.get_bounding_box().max_size());
|
set_axes_length(0.3f * (float)m_bed.get_bounding_box().max_size());
|
||||||
|
|
||||||
if (new_shape)
|
if (new_shape)
|
||||||
{
|
zoom_to_bed();
|
||||||
// forces the selection of the proper camera target
|
|
||||||
if (m_volumes.volumes.empty())
|
|
||||||
zoom_to_bed();
|
|
||||||
else
|
|
||||||
zoom_to_volumes();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_dirty = true;
|
m_dirty = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user