Forced zoom to bed when changing bed size

This commit is contained in:
Enrico Turri 2018-11-20 10:36:26 +01:00
parent 34cf541e0d
commit aa22f75829

View File

@ -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;
} }