3D viewer: do not build the board 3D data during 3D frame creation, but after.

Building the 3D data is time consuming, so creating the data after the 3D
frame is shown is better, and the build activity is visible, especially on Linux.
This commit is contained in:
jean-pierre charras
2021-07-18 17:55:40 +02:00
parent 56412cc843
commit a43ca978df
10 changed files with 42 additions and 14 deletions
+5
View File
@@ -452,6 +452,11 @@ EDA_3D_VIEWER_FRAME* PCB_BASE_FRAME::CreateAndShow3D_Frame()
if( wxWindow::FindFocus() != draw3DFrame )
draw3DFrame->SetFocus();
// Allocate a slice of time to display the 3D frame
wxSafeYield();
// And show the current board
Update3DView( true, true );
return draw3DFrame;
}