From 9e7d7595fb4c1d808f571298d192bd7bb1b962a4 Mon Sep 17 00:00:00 2001 From: John Weston Date: Sun, 17 Sep 2023 10:31:12 -0700 Subject: [PATCH] change offset handling to avoid stacking in v11 --- scripts/quickscale.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/quickscale.js b/scripts/quickscale.js index bb93080..5576426 100755 --- a/scripts/quickscale.js +++ b/scripts/quickscale.js @@ -264,9 +264,8 @@ Hooks.on('renderSettingsConfig', () => { // Gotta hook in here to handle the vertical offsets. Hooks.on('refreshToken', (token) => { if (!token.mesh) return; - const { offsetX, offsetY } = token.document.texture; - token.mesh.position.x += offsetX; - token.mesh.position.y += offsetY; + const { offsetY } = token.document.texture; + token.mesh.position.y = token.document.y + offsetY; }); function handleRandomScaleKey(currentToolLayer, key) {