diff --git a/srcpkgs/cura/patches/fix_support_blocker_crash.patch b/srcpkgs/cura/patches/fix_support_blocker_crash.patch new file mode 100644 index 00000000000..0ac249e2e5c --- /dev/null +++ b/srcpkgs/cura/patches/fix_support_blocker_crash.patch @@ -0,0 +1,15 @@ +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 diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template index 7a143a8b69a..53bd19afc3b 100644 --- a/srcpkgs/cura/template +++ b/srcpkgs/cura/template @@ -1,7 +1,7 @@ # Template file for 'cura' pkgname=cura -version=4.11.0 -revision=2 +version=4.12.0 +revision=1 wrksrc="Cura-${version}" build_style=cmake configure_args="-DCURA_VERSION=${version} @@ -18,4 +18,4 @@ maintainer="Karl Nilsson " license="LGPL-3.0-or-later" homepage="https://github.com/Ultimaker/Cura" distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz" -checksum=f8dcee2165141b9390c3144f2db4d7bbb0d62faf5f194e056266fa9409aa7a88 +checksum=ebbc00c792dca1365aa2a83c5e20b2c5973a47c2e24f1338e56fd48aac960d38