Remove convex hull computation when not required

ConvexHullDecorator is setup at node creation, so I can't see a way that this part of code is called. Moreover, it would add a decorator for a layer plan node, which actually leads to a crash.

CURA-10004
This commit is contained in:
Erwan MATHIEU 2023-09-11 15:44:07 +02:00
parent 95530b5779
commit ab22611ecf

View file

@ -84,10 +84,6 @@ 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