From a4a35ba485aaf33e2e90431f179ae7b792850d54 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 10 Mar 2025 13:46:31 +0100 Subject: [PATCH] Fix overlapping objects after auto-arrange CURA-12453 * Use DONT_ALIGN alignment, otherwise all the transforms get re-centered, including the ones of the fixed objects * Remove DONT_ALIGN strategy for starting point, which is a non-handled case in the inner library --- cura/Arranging/Nest2DArrange.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cura/Arranging/Nest2DArrange.py b/cura/Arranging/Nest2DArrange.py index 7e024f565f..5f34cb21a0 100644 --- a/cura/Arranging/Nest2DArrange.py +++ b/cura/Arranging/Nest2DArrange.py @@ -102,8 +102,7 @@ class Nest2DArrange(Arranger): NfpConfig.Alignment.BOTTOM_LEFT, NfpConfig.Alignment.BOTTOM_RIGHT, NfpConfig.Alignment.TOP_LEFT, - NfpConfig.Alignment.TOP_RIGHT, - NfpConfig.Alignment.DONT_ALIGN] + NfpConfig.Alignment.TOP_RIGHT] found_solution_for_all = False while not found_solution_for_all and len(strategies) > 0: @@ -124,7 +123,7 @@ class Nest2DArrange(Arranger): config = NfpConfig() config.accuracy = 1.0 - config.alignment = NfpConfig.Alignment.CENTER + config.alignment = NfpConfig.Alignment.DONT_ALIGN config.starting_point = strategies[0] strategies = strategies[1:]