mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Make sure the name of the view is set correclty
even if there was a setting found
This commit is contained in:
@@ -53,13 +53,12 @@ MixingView::MixingView() : View(MIXING), limbo_scale_(MIXING_MIN_THRESHOLD)
|
||||
scene.root()->scale_ = glm::vec3(MIXING_DEFAULT_SCALE, MIXING_DEFAULT_SCALE, 1.0f);
|
||||
scene.root()->translation_ = glm::vec3(0.0f, 0.0f, 0.0f);
|
||||
// read default settings
|
||||
if ( Settings::application.views[mode_].name.empty() ) {
|
||||
if ( Settings::application.views[mode_].name.empty() )
|
||||
// no settings found: store application default
|
||||
Settings::application.views[mode_].name = "Mixing";
|
||||
saveSettings();
|
||||
}
|
||||
else
|
||||
restoreSettings();
|
||||
Settings::application.views[mode_].name = "Mixing";
|
||||
|
||||
// Mixing scene background
|
||||
limbo_ = new Mesh("mesh/disk.ply");
|
||||
|
||||
Reference in New Issue
Block a user