mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix wrong bounding box calculation for initial arrange item.
This commit is contained in:
@@ -1117,11 +1117,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setInitialPosition(Item& item) {
|
void setInitialPosition(Item& item) {
|
||||||
auto sh = item.rawShape();
|
Box bb = item.boundingBox();
|
||||||
sl::translate(sh, item.translation());
|
|
||||||
sl::rotate(sh, item.rotation());
|
|
||||||
|
|
||||||
Box bb = sl::boundingBox(sh);
|
|
||||||
|
|
||||||
Vertex ci, cb;
|
Vertex ci, cb;
|
||||||
auto bbin = sl::boundingBox(bin_);
|
auto bbin = sl::boundingBox(bin_);
|
||||||
|
|||||||
Reference in New Issue
Block a user