From e4a6b8dd911ddfac576749d07a9d0a5e158818e7 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 18 Sep 2023 14:57:55 +0200 Subject: [PATCH] Revert "Remove convex hull computation when not required" This reverts commit ab22611ecfb4f74146afc49f78ee1065373447c9. --- cura/PlatformPhysics.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/PlatformPhysics.py b/cura/PlatformPhysics.py index 9a86223db9..402b9fe250 100755 --- a/cura/PlatformPhysics.py +++ b/cura/PlatformPhysics.py @@ -84,6 +84,10 @@ class PlatformPhysics: z_offset = node.callDecoration("getZOffset") if node.getDecorator(ZOffsetDecorator.ZOffsetDecorator) else 0 move_vector = move_vector.set(y = -bbox.bottom + z_offset) + # If there is no convex hull for the node, start calculating it and continue. + if not node.getDecorator(ConvexHullDecorator) and not node.callDecoration("isNonPrintingMesh"): + node.addDecorator(ConvexHullDecorator()) + # only push away objects if this node is a printing mesh if not node.callDecoration("isNonPrintingMesh") and app_automatic_push_free: # Do not move locked nodes