Attempt to reduce ugly artifacts when switching to preview for the 1st time

This commit is contained in:
Enrico Turri 2018-12-20 12:51:42 +01:00
parent a5b846f7fc
commit 780e3c700e

View file

@ -1162,9 +1162,9 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
hsizer->Add(sidebar, 0, wxEXPAND | wxLEFT | wxRIGHT, 0); hsizer->Add(sidebar, 0, wxEXPAND | wxLEFT | wxRIGHT, 0);
q->SetSizer(hsizer); q->SetSizer(hsizer);
#if ENABLE_REMOVE_TABS_FROM_PLATER //#if ENABLE_REMOVE_TABS_FROM_PLATER
set_current_panel(view3D); // set_current_panel(view3D);
#endif // ENABLE_REMOVE_TABS_FROM_PLATER //#endif // ENABLE_REMOVE_TABS_FROM_PLATER
init_object_menu(); init_object_menu();
@ -1251,6 +1251,10 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
update_ui_from_settings(); update_ui_from_settings();
q->Layout(); q->Layout();
#if ENABLE_REMOVE_TABS_FROM_PLATER
set_current_panel(view3D);
#endif // ENABLE_REMOVE_TABS_FROM_PLATER
} }
void Plater::priv::update(bool force_full_scene_refresh) void Plater::priv::update(bool force_full_scene_refresh)