void-packages/srcpkgs/cura/patches/fix_support_blocker_crash.patch

16 lines
560 B
Diff
Raw Normal View History

diff --git a/cura/PickingPass.py b/cura/PickingPass.py
index 54e886fe6..4d6ef671d 100644
--- a/cura/PickingPass.py
+++ b/cura/PickingPass.py
@@ -72,8 +72,8 @@ class PickingPass(RenderPass):
window_size = self._renderer.getWindowSize()
- px = (0.5 + x / 2.0) * window_size[0]
- py = (0.5 + y / 2.0) * window_size[1]
+ px = int((0.5 + x / 2.0) * window_size[0])
+ py = int((0.5 + y / 2.0) * window_size[1])
if px < 0 or px > (output.width() - 1) or py < 0 or py > (output.height() - 1):
return -1