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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-01-16 12:17:07 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-01-16 12:17:07 +0300
commit3f2ccf08d28e5fc8fd0c4443f4d39869ed095e7d (patch)
tree9dbb5413c92cf247faa4fa4b40389b2389653704 /src/slic3r/GUI/Camera.hpp
parent9f7feedc8bd18abcb7bdeeea05c78912da93a6a4 (diff)
3Dconnexion devices translation linearly dependent on zoom
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r--src/slic3r/GUI/Camera.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp
index 67c97c0b4..257b27901 100644
--- a/src/slic3r/GUI/Camera.hpp
+++ b/src/slic3r/GUI/Camera.hpp
@@ -80,6 +80,7 @@ public:
#endif // !ENABLE_6DOF_CAMERA
double get_zoom() const { return m_zoom; }
+ double get_inv_zoom() const { assert(m_zoom != 0.0); return 1.0 / m_zoom; }
void update_zoom(double delta_zoom);
void set_zoom(double zoom);