Bugfix view config loading

This commit is contained in:
brunoherbelin
2021-03-27 18:13:09 +01:00
parent ee2ce3802f
commit bc4eadfd08
7 changed files with 22 additions and 21 deletions

View File

@@ -25,16 +25,17 @@
LayerView::LayerView() : View(LAYER), aspect_ratio(1.f)
{
scene.root()->scale_ = glm::vec3(LAYER_DEFAULT_SCALE, LAYER_DEFAULT_SCALE, 1.0f);
scene.root()->translation_ = glm::vec3(2.2f, 1.2f, 0.0f);
// read default settings
if ( Settings::application.views[mode_].name.empty() ) {
// no settings found: store application default
Settings::application.views[mode_].name = "Layer";
scene.root()->scale_ = glm::vec3(LAYER_DEFAULT_SCALE, LAYER_DEFAULT_SCALE, 1.0f);
scene.root()->translation_ = glm::vec3(2.2f, 1.2f, 0.0f);
saveSettings();
}
else
else {
restoreSettings();
}
// Geometry Scene background
frame_ = new Group;