diff --git a/common/lc_application.cpp b/common/lc_application.cpp index b7e66c80..5992cc90 100644 --- a/common/lc_application.cpp +++ b/common/lc_application.cpp @@ -610,5 +610,6 @@ void lcApplication::ShowPreferencesDialog() strcpy(opts.strHeader, m_strHeader); */ + gMainWindow->SetShadingMode(Options.Preferences.mShadingMode); gMainWindow->UpdateAllViews(); } diff --git a/common/lc_mainwindow.h b/common/lc_mainwindow.h index 75a65447..10056aca 100644 --- a/common/lc_mainwindow.h +++ b/common/lc_mainwindow.h @@ -246,6 +246,7 @@ public: void SetLockZ(bool LockZ); void SetRelativeTransform(bool RelativeTransform); void SetCurrentPieceInfo(PieceInfo* Info); + void SetShadingMode(lcShadingMode ShadingMode); void NewProject(); bool OpenProject(const QString& FileName); @@ -318,7 +319,6 @@ protected: void ShowUpdatesDialog(); void ShowAboutDialog(); void ShowPrintDialog(); - void SetShadingMode(lcShadingMode ShadingMode); lcModelTabWidget* GetTabWidgetForModel(lcModel* Model) const {