Must do a two-step default for legacy colours.

This commit is contained in:
Jeff Young 2024-06-29 21:52:39 +01:00
parent d80caeb844
commit 3f9eb0e18d
2 changed files with 2 additions and 2 deletions

View File

@ -591,7 +591,7 @@ void EDA_3D_VIEWER_FRAME::LoadSettings( APP_SETTINGS_BASE *aCfg )
GetAdapter().GetDefaultColors() ); GetAdapter().GetDefaultColors() );
} }
cfg->m_CurrentPreset = wxEmptyString; cfg->m_CurrentPreset = FOLLOW_PLOT_SETTINGS;
} }
m_boardAdapter.InitSettings( nullptr, nullptr ); m_boardAdapter.InitSettings( nullptr, nullptr );

View File

@ -382,7 +382,7 @@ EDA_3D_VIEWER_SETTINGS::EDA_3D_VIEWER_SETTINGS() :
m_params.emplace_back( new PARAM_LAYER_PRESET_3D( "layer_presets", m_params.emplace_back( new PARAM_LAYER_PRESET_3D( "layer_presets",
&m_LayerPresets ) ); &m_LayerPresets ) );
m_params.emplace_back( new PARAM<wxString>( "current_layer_preset", m_params.emplace_back( new PARAM<wxString>( "current_layer_preset",
&m_CurrentPreset, FOLLOW_PLOT_SETTINGS ) ); &m_CurrentPreset, LEGACY_PRESET_FLAG ) );
registerMigration( 0, 1, std::bind( &EDA_3D_VIEWER_SETTINGS::migrateSchema0to1, this ) ); registerMigration( 0, 1, std::bind( &EDA_3D_VIEWER_SETTINGS::migrateSchema0to1, this ) );