mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-13 15:18:09 +08:00
Fixed assert in imgui when starting Slic3r for the 1st time (no config data saved on disk)
This commit is contained in:
parent
902bcf7f71
commit
710bb66dfc
@ -4159,8 +4159,11 @@ void GLCanvas3D::render()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_bed.get_shape().empty())
|
if (m_bed.get_shape().empty())
|
||||||
|
{
|
||||||
// this happens at startup when no data is still saved under <>\AppData\Roaming\Slic3rPE
|
// this happens at startup when no data is still saved under <>\AppData\Roaming\Slic3rPE
|
||||||
post_event(SimpleEvent(EVT_GLCANVAS_UPDATE_BED_SHAPE));
|
post_event(SimpleEvent(EVT_GLCANVAS_UPDATE_BED_SHAPE));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_camera.requires_zoom_to_bed)
|
if (m_camera.requires_zoom_to_bed)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user