mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
fix incorrect bounds with selection
This commit is contained in:
parent
84c2aee7da
commit
2ad07f9ace
@ -67,7 +67,9 @@ export class HUDScreenshotExporter extends BaseHUDPart {
|
|||||||
const tileStart = worldStart.toTileSpace();
|
const tileStart = worldStart.toTileSpace();
|
||||||
const tileEnd = worldEnd.toTileSpace();
|
const tileEnd = worldEnd.toTileSpace();
|
||||||
|
|
||||||
bounds = Rectangle.fromTwoPoints(tileStart, tileEnd.addScalars(1, 1));
|
bounds = Rectangle.fromTwoPoints(tileStart, tileEnd);
|
||||||
|
bounds.w += 1;
|
||||||
|
bounds.h += 1;
|
||||||
} else if (massSelector.selectedUids.size > 0) {
|
} else if (massSelector.selectedUids.size > 0) {
|
||||||
const minTile = new Vector(Infinity, Infinity);
|
const minTile = new Vector(Infinity, Infinity);
|
||||||
const maxTile = new Vector(-Infinity, -Infinity);
|
const maxTile = new Vector(-Infinity, -Infinity);
|
||||||
|
Loading…
Reference in New Issue
Block a user