FIX:cannot load .gcode file

Change-Id: I14d42d8fb4b6370ac01c8e5325b561520fa94072
This commit is contained in:
liz.li 2023-02-21 14:26:19 +08:00 committed by Lane.Wei
parent ae0ad4136b
commit c09fca6e60
2 changed files with 5 additions and 2 deletions

View file

@ -7112,8 +7112,11 @@ void GLCanvas3D::_render_main_toolbar()
//when rendering, {0, 0} is at the center, {-0.5, 0.5} at the left-up
void GLCanvas3D::_render_imgui_select_plate_toolbar()
{
if (!m_sel_plate_toolbar.is_enabled())
if (!m_sel_plate_toolbar.is_enabled()) {
if (!m_render_preview)
m_render_preview = true;
return;
}
IMToolbarItem* all_plates_stats_item = m_sel_plate_toolbar.m_all_plates_stats_item;