mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 17:45:53 +08:00
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
This commit is contained in:
parent
22d1d170dc
commit
a4a35ba485
@ -102,8 +102,7 @@ class Nest2DArrange(Arranger):
|
|||||||
NfpConfig.Alignment.BOTTOM_LEFT,
|
NfpConfig.Alignment.BOTTOM_LEFT,
|
||||||
NfpConfig.Alignment.BOTTOM_RIGHT,
|
NfpConfig.Alignment.BOTTOM_RIGHT,
|
||||||
NfpConfig.Alignment.TOP_LEFT,
|
NfpConfig.Alignment.TOP_LEFT,
|
||||||
NfpConfig.Alignment.TOP_RIGHT,
|
NfpConfig.Alignment.TOP_RIGHT]
|
||||||
NfpConfig.Alignment.DONT_ALIGN]
|
|
||||||
found_solution_for_all = False
|
found_solution_for_all = False
|
||||||
while not found_solution_for_all and len(strategies) > 0:
|
while not found_solution_for_all and len(strategies) > 0:
|
||||||
|
|
||||||
@ -124,7 +123,7 @@ class Nest2DArrange(Arranger):
|
|||||||
|
|
||||||
config = NfpConfig()
|
config = NfpConfig()
|
||||||
config.accuracy = 1.0
|
config.accuracy = 1.0
|
||||||
config.alignment = NfpConfig.Alignment.CENTER
|
config.alignment = NfpConfig.Alignment.DONT_ALIGN
|
||||||
config.starting_point = strategies[0]
|
config.starting_point = strategies[0]
|
||||||
strategies = strategies[1:]
|
strategies = strategies[1:]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user