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/GLSelectionRectangle.cpp
parent9f7feedc8bd18abcb7bdeeea05c78912da93a6a4 (diff)
3Dconnexion devices translation linearly dependent on zoom
Diffstat (limited to 'src/slic3r/GUI/GLSelectionRectangle.cpp')
-rw-r--r--src/slic3r/GUI/GLSelectionRectangle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slic3r/GUI/GLSelectionRectangle.cpp b/src/slic3r/GUI/GLSelectionRectangle.cpp
index 684563bff..a8b69d75a 100644
--- a/src/slic3r/GUI/GLSelectionRectangle.cpp
+++ b/src/slic3r/GUI/GLSelectionRectangle.cpp
@@ -69,8 +69,7 @@ namespace GUI {
return;
const Camera& camera = canvas.get_camera();
- float zoom = (float)camera.get_zoom();
- float inv_zoom = (zoom != 0.0f) ? 1.0f / zoom : 0.0f;
+ float inv_zoom = (float)camera.get_inv_zoom();
Size cnv_size = canvas.get_canvas_size();
float cnv_half_width = 0.5f * (float)cnv_size.get_width();