Skip to content

Commit

Permalink
change offset handling to avoid stacking in v11
Browse files Browse the repository at this point in the history
  • Loading branch information
unsoluble committed Sep 17, 2023
1 parent 2b1fd21 commit 9e7d759
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/quickscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9e7d759

Please sign in to comment.