Skip to content

Commit

Permalink
Merge pull request #41 from mraware/fix/templateBoundsExtent
Browse files Browse the repository at this point in the history
Fix template bounds extents when bricks are offset 1/10
  • Loading branch information
voximity authored Dec 3, 2023
2 parents cfbc4da + 4733953 commit 01883d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/omegga/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,9 @@ class Player implements OmeggaPlayer {
const saveData = await this.#omegga.getSaveData({
center: templateBounds.center,
extent: [
(templateBounds.maxBound[0] - templateBounds.minBound[0]) / 2,
(templateBounds.maxBound[1] - templateBounds.minBound[1]) / 2,
(templateBounds.maxBound[2] - templateBounds.minBound[2]) / 2,
Math.round((templateBounds.maxBound[0] - templateBounds.minBound[0]) / 2),
Math.round((templateBounds.maxBound[1] - templateBounds.minBound[1]) / 2),
Math.round((templateBounds.maxBound[2] - templateBounds.minBound[2]) / 2),
],
});

Expand Down

0 comments on commit 01883d7

Please sign in to comment.