mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:57:23 +08:00
CURA-5434 fixed arrange to all build plates by reversing hull_shape and offset_shape
This commit is contained in:
parent
4ddbf44373
commit
79d6a9a614
@ -110,7 +110,7 @@ class ArrangeObjectsAllBuildPlatesJob(Job):
|
|||||||
arrange_array.add()
|
arrange_array.add()
|
||||||
arranger = arrange_array.get(current_build_plate_number)
|
arranger = arrange_array.get(current_build_plate_number)
|
||||||
|
|
||||||
best_spot = arranger.bestSpot(offset_shape_arr, start_prio=start_priority)
|
best_spot = arranger.bestSpot(hull_shape_arr, start_prio=start_priority)
|
||||||
x, y = best_spot.x, best_spot.y
|
x, y = best_spot.x, best_spot.y
|
||||||
node.removeDecorator(ZOffsetDecorator)
|
node.removeDecorator(ZOffsetDecorator)
|
||||||
if node.getBoundingBox():
|
if node.getBoundingBox():
|
||||||
@ -118,7 +118,7 @@ class ArrangeObjectsAllBuildPlatesJob(Job):
|
|||||||
else:
|
else:
|
||||||
center_y = 0
|
center_y = 0
|
||||||
if x is not None: # We could find a place
|
if x is not None: # We could find a place
|
||||||
arranger.place(x, y, hull_shape_arr) # place the object in the arranger
|
arranger.place(x, y, offset_shape_arr) # place the object in the arranger
|
||||||
|
|
||||||
node.callDecoration("setBuildPlateNumber", current_build_plate_number)
|
node.callDecoration("setBuildPlateNumber", current_build_plate_number)
|
||||||
grouped_operation.addOperation(TranslateOperation(node, Vector(x, center_y, y), set_position = True))
|
grouped_operation.addOperation(TranslateOperation(node, Vector(x, center_y, y), set_position = True))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user