Fixed assert in imgui when starting Slic3r for the 1st time (no config data saved on disk)

This commit is contained in:
Enrico Turri 2019-03-18 10:10:11 +01:00
parent 902bcf7f71
commit 710bb66dfc

View file

@ -4159,8 +4159,11 @@ void GLCanvas3D::render()
return;
if (m_bed.get_shape().empty())
{
// this happens at startup when no data is still saved under <>\AppData\Roaming\Slic3rPE
post_event(SimpleEvent(EVT_GLCANVAS_UPDATE_BED_SHAPE));
return;
}
if (m_camera.requires_zoom_to_bed)
{