Fixed rotation of 3D view camera after change of bed data
This commit is contained in:
parent
11b0325c66
commit
3f6d3b903d
1 changed files with 6 additions and 0 deletions
|
@ -1947,6 +1947,12 @@ void GLCanvas3D::set_bed_shape(const Pointfs& shape)
|
||||||
m_axes.origin = Pointf3(0.0, 0.0, (coordf_t)GROUND_Z);
|
m_axes.origin = Pointf3(0.0, 0.0, (coordf_t)GROUND_Z);
|
||||||
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());
|
||||||
|
|
||||||
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue