mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
More camera related functionalities moved from GLCanvas3D to Camera
This commit is contained in:
parent
a3e6412113
commit
da8179d9c7
7 changed files with 131 additions and 114 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue