SPE-1547 - Fixed object shown in preview while it should not

This commit is contained in:
enricoturri1966 2023-03-01 15:17:43 +01:00
parent 1749f74578
commit 55b3bf879a

View file

@ -5016,9 +5016,11 @@ void GLCanvas3D::_refresh_if_shown_on_screen()
// frequently enough, we call render() here directly when we can. // frequently enough, we call render() here directly when we can.
render(); render();
assert(m_initialized); assert(m_initialized);
if (requires_reload_scene) if (requires_reload_scene) {
if (wxGetApp().plater()->is_view3D_shown())
reload_scene(true); reload_scene(true);
} }
}
} }
void GLCanvas3D::_picking_pass() void GLCanvas3D::_picking_pass()