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>2019-06-19 15:18:51 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-06-19 15:18:51 +0300
commitda8179d9c7a7f1892775a3f6d858db60a1c55501 (patch)
tree111832bd1f5dabf7d13b288732e2b79f48dabe40 /src/slic3r/GUI/GLSelectionRectangle.cpp
parenta3e6412113b1760ff2ab980cbecffe6505426ba2 (diff)
More camera related functionalities moved from GLCanvas3D to Camera
Diffstat (limited to 'src/slic3r/GUI/GLSelectionRectangle.cpp')
-rw-r--r--src/slic3r/GUI/GLSelectionRectangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GLSelectionRectangle.cpp b/src/slic3r/GUI/GLSelectionRectangle.cpp
index 9684bb5ec..327cb1fde 100644
--- a/src/slic3r/GUI/GLSelectionRectangle.cpp
+++ b/src/slic3r/GUI/GLSelectionRectangle.cpp
@@ -68,7 +68,7 @@ namespace GUI {
if (!is_dragging())
return;
- float zoom = canvas.get_camera().zoom;
+ float zoom = (float)canvas.get_camera().get_zoom();
float inv_zoom = (zoom != 0.0f) ? 1.0f / zoom : 0.0f;
Size cnv_size = canvas.get_canvas_size();