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,8 +5016,10 @@ void GLCanvas3D::_refresh_if_shown_on_screen()
// frequently enough, we call render() here directly when we can.
render();
assert(m_initialized);
if (requires_reload_scene)
reload_scene(true);
if (requires_reload_scene) {
if (wxGetApp().plater()->is_view3D_shown())
reload_scene(true);
}
}
}