From 3861a043f4dd435b75c80e534992cfd89f050f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Skowro=C5=84ski?= Date: Fri, 22 Nov 2024 11:32:41 +0100 Subject: [PATCH] Changed scaling of the CoR --- cura/NavlibClient.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cura/NavlibClient.py b/cura/NavlibClient.py index f991a007d8..ae355a8a69 100644 --- a/cura/NavlibClient.py +++ b/cura/NavlibClient.py @@ -17,7 +17,7 @@ class NavlibClient(pynav.NavlibNavigationModel): self._was_pick = False self._hit_selection_only = False self._picking_pass = None - self._pivot_node = OverlayNode(node=SceneNode(), image_path=Resources.getPath(Resources.Images, "3dx_pivot.png"), size=3.) + self._pivot_node = OverlayNode(node=SceneNode(), image_path=Resources.getPath(Resources.Images, "3dx_pivot.png"), size=2.5) def pick(self, x, y, check_selection = False, radius = 0.): @@ -226,8 +226,6 @@ class NavlibClient(pynav.NavlibNavigationModel): camera_position = active_camera.getWorldPosition() dist = (camera_position - self._pivot_node.getWorldPosition()).length() scale = dist / 400. - if scale < 1.: - scale = scale * scale else: view_width = active_camera.getViewportWidth() current_size = view_width + (2. * active_camera.getZoomFactor() * view_width)