mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02: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