From 654f8e3111b05667e34ec8856d10434171535b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Fri, 1 Apr 2022 18:03:50 +0200 Subject: [PATCH] Fix a typo that caused measurement template snapping to be broken (fixes #185) --- js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/util.js b/js/util.js index c2406e2..28eeb1a 100644 --- a/js/util.js +++ b/js/util.js @@ -94,7 +94,7 @@ export function getSnapPointForMeasuredTemplate(x, y) { if (canvas.grid.type === CONST.GRID_TYPES.GRIDLESS) { 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) {