mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
Bugfix view config loading
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user