Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2019-06-24 16:55:14 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-06-24 16:55:14 +0300
commit992170c5f66e1bc823c03a26ad43af8b03d188d3 (patch)
tree278323f8cf35e563ab8472e84ea27cfd81d88cc4 /src/slic3r/GUI/GLCanvas3D.cpp
parent5320ed9374d4559ac0fcc5a299bd79018ed9a1cb (diff)
1) Perspective camera set as default camera type
2) Camera type selection added to Preferences dialog
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.cpp')
-rw-r--r--src/slic3r/GUI/GLCanvas3D.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp
index 25319e9ce..2f265eb92 100644
--- a/src/slic3r/GUI/GLCanvas3D.cpp
+++ b/src/slic3r/GUI/GLCanvas3D.cpp
@@ -3312,6 +3312,9 @@ void GLCanvas3D::handle_sidebar_focus_event(const std::string& opt_key, bool foc
void GLCanvas3D::update_ui_from_settings()
{
+ m_camera.set_type(wxGetApp().app_config->get("use_perspective_camera"));
+ m_dirty = true;
+
#if ENABLE_RETINA_GL
const float orig_scaling = m_retina_helper->get_scale_factor();