Fixed bug into Camera::set_target()

This commit is contained in:
Enrico Turri 2019-11-07 11:48:59 +01:00
parent a624590b36
commit 55a4b99e44
2 changed files with 10 additions and 8 deletions

View file

@ -1373,7 +1373,7 @@ void GLCanvas3D::set_model(Model* model)
void GLCanvas3D::bed_shape_changed()
{
m_camera.set_scene_box(scene_bounding_box());
refresh_camera_scene_box();
m_camera.requires_zoom_to_bed = true;
m_dirty = true;
if (m_bed.is_prusa())
@ -2116,7 +2116,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
post_event(Event<bool>(EVT_GLCANVAS_ENABLE_ACTION_BUTTONS, false));
}
m_camera.set_scene_box(scene_bounding_box());
refresh_camera_scene_box();
if (m_selection.is_empty())
{