[Fix] Template Scene Awareness (#1769)

* .

* Using foundry values from schema for fallback gridSize and gridDistance

* .
This commit is contained in:
WBHarry 2026-04-02 23:22:09 +02:00 committed by GitHub
parent 36ffe8a23a
commit 3265613767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 8 deletions

View file

@ -18,7 +18,7 @@ export default class DhMeasuredTemplate extends foundry.canvas.placeables.Measur
static getRangeLabels(distanceValue, settings) {
let result = { distance: distanceValue, units: '' };
if (!settings.enabled) return result;
if (!settings.enabled || !canvas.scene) return result;
const sceneRangeMeasurement = canvas.scene.flags.daggerheart?.rangeMeasurement;
const { disable, custom } = CONFIG.DH.GENERAL.sceneRangeMeasurementSetting;