3D viewer: Disable copper thickness in OpenGL mode
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10153
(cherry picked from commit 517e44e917
)
This commit is contained in:
parent
992952e3d5
commit
595caf30a2
|
@ -29,7 +29,7 @@
|
||||||
using KIGFX::COLOR4D;
|
using KIGFX::COLOR4D;
|
||||||
|
|
||||||
///! Update the schema version whenever a migration is required
|
///! Update the schema version whenever a migration is required
|
||||||
const int viewer3dSchemaVersion = 1;
|
const int viewer3dSchemaVersion = 2;
|
||||||
|
|
||||||
|
|
||||||
EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS()
|
EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS()
|
||||||
|
@ -63,7 +63,7 @@ EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS()
|
||||||
|
|
||||||
// OpenGL options
|
// OpenGL options
|
||||||
m_params.emplace_back( new PARAM<bool>( "render.opengl_copper_thickness",
|
m_params.emplace_back( new PARAM<bool>( "render.opengl_copper_thickness",
|
||||||
&m_Render.opengl_copper_thickness, true ) );
|
&m_Render.opengl_copper_thickness, false ) );
|
||||||
m_params.emplace_back( new PARAM<bool>( "render.opengl_show_model_bbox",
|
m_params.emplace_back( new PARAM<bool>( "render.opengl_show_model_bbox",
|
||||||
&m_Render.opengl_show_model_bbox, false ) );
|
&m_Render.opengl_show_model_bbox, false ) );
|
||||||
m_params.emplace_back( new PARAM<bool>( "render.opengl_highlight_on_rollover",
|
m_params.emplace_back( new PARAM<bool>( "render.opengl_highlight_on_rollover",
|
||||||
|
@ -202,6 +202,12 @@ EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS()
|
||||||
&m_Camera.projection_mode, 1 ) );
|
&m_Camera.projection_mode, 1 ) );
|
||||||
|
|
||||||
registerMigration( 0, 1, std::bind( &EDA_3D_VIEWER_SETTINGS::migrateSchema0to1, this ) );
|
registerMigration( 0, 1, std::bind( &EDA_3D_VIEWER_SETTINGS::migrateSchema0to1, this ) );
|
||||||
|
|
||||||
|
registerMigration( 1, 2, [&]() -> bool
|
||||||
|
{
|
||||||
|
Set( "render.opengl_copper_thickness", false );
|
||||||
|
return true;
|
||||||
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue