mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-31 05:47:02 +00:00
FIX: auto-arranging incorrect with rotation enabled
auto-arranging incorrect with rotation enabled and the objects already have been rotated. jira: STUDIO-6022 Change-Id: I349d663efb1fc71367c8a77aa8ed5047a0bf2017 (cherry picked from commit 75fe40257a274ed83886e1ee20ce8dedd0de48f6)
This commit is contained in:
@@ -987,7 +987,7 @@ void _arrange(
|
|||||||
// polygon nesting, a convex hull needs to be calculated.
|
// polygon nesting, a convex hull needs to be calculated.
|
||||||
if (params.allow_rotations) {
|
if (params.allow_rotations) {
|
||||||
for (auto &itm : shapes) {
|
for (auto &itm : shapes) {
|
||||||
itm.rotation(min_area_boundingbox_rotation(itm.rawShape()));
|
itm.rotation(min_area_boundingbox_rotation(itm.transformedShape()));
|
||||||
|
|
||||||
// If the item is too big, try to find a rotation that makes it fit
|
// If the item is too big, try to find a rotation that makes it fit
|
||||||
if constexpr (std::is_same_v<BinT, Box>) {
|
if constexpr (std::is_same_v<BinT, Box>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user