mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Hotfix for arrange not working for objects with huge translation.
This commit is contained in:
@@ -501,8 +501,9 @@ inline P _Box<P>::center() const BP2D_NOEXCEPT {
|
||||
using Coord = TCoord<P>;
|
||||
|
||||
P ret = { // No rounding here, we dont know if these are int coords
|
||||
Coord( (getX(minc) + getX(maxc)) / Coord(2) ),
|
||||
Coord( (getY(minc) + getY(maxc)) / Coord(2) )
|
||||
// Doing the division like this increases the max range of x and y coord
|
||||
getX(minc) / Coord(2) + getX(maxc) / Coord(2),
|
||||
getY(minc) / Coord(2) + getY(maxc) / Coord(2)
|
||||
};
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user