Fix a typo that caused measurement template snapping to be broken (fixes #185)

This commit is contained in:
Manuel Vögele
2022-04-01 18:03:50 +02:00
parent 5f6e348bf0
commit 654f8e3111
+1 -1
View File
@@ -94,7 +94,7 @@ export function getSnapPointForMeasuredTemplate(x, y) {
if (canvas.grid.type === CONST.GRID_TYPES.GRIDLESS) { if (canvas.grid.type === CONST.GRID_TYPES.GRIDLESS) {
return new PIXI.Point(x, y); return new PIXI.Point(x, y);
} }
return canvas.grid.grid.getSnappedPosition(x, y, canvas.templates.gridPosition); return canvas.grid.grid.getSnappedPosition(x, y, canvas.templates.gridPrecision);
} }
export function getSnapPointForEntity(x, y, entity) { export function getSnapPointForEntity(x, y, entity) {