mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:05:53 +08:00
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:
parent
95530b5779
commit
ab22611ecf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user