mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-14 13:19:34 +00:00
Fix 3D viewer omission of STEP models with relative path assignment
The project was not assigned to the board in the 3D viewer frame, resulting in a failure to locate the relative path for STEP models. To fix this, the current project should be assigned to the board in the 3D viewer frame. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16242
This commit is contained in:
parent
6d9b73237e
commit
d2e51fdb5f
@ -571,6 +571,9 @@ void EDA_3D_VIEWER_FRAME::LoadSettings( APP_SETTINGS_BASE *aCfg )
|
||||
{
|
||||
applySettings( cfg );
|
||||
|
||||
if( !GetBoard()->GetProject() )
|
||||
GetBoard()->SetProject( &Prj() );
|
||||
|
||||
m_boardAdapter.SetBoard( GetBoard() );
|
||||
|
||||
// When opening the 3D viewer, we use the OpenGL mode, never the ray tracing engine
|
||||
|
Loading…
Reference in New Issue
Block a user