From 48d0d176281e071bb8adc698fce7bcc9cdb6c011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Mon, 12 Jun 2023 22:20:30 +0200 Subject: [PATCH] Use canvas.scene.grid.type instead of cnavas.scene.gridType (which is undefined since v10) (fixes #272) --- src/foundry_imports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/foundry_imports.js b/src/foundry_imports.js index ab8e281..efeeeeb 100644 --- a/src/foundry_imports.js +++ b/src/foundry_imports.js @@ -185,7 +185,7 @@ export function highlightMeasurementNative( tokenShape = [{x: 0, y: 0}], alpha = 1, ) { - const spacer = canvas.scene.gridType === CONST.GRID_TYPES.SQUARE ? 1.41 : 1; + const spacer = canvas.scene.grid.type === CONST.GRID_TYPES.SQUARE ? 1.41 : 1; const nMax = Math.max( Math.floor(ray.distance / (spacer * Math.min(canvas.grid.w, canvas.grid.h))), 1,