Skip to content

Commit

Permalink
Token global settings fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Sep 23, 2022
1 parent b802d0a commit 7bd7f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ function getFlipOrRotation(tokenDocument) {
}

function getMirror(tokenDocument, position) {
const facingDirection = tokenDocument.getFlag(MODULE_ID, "facingDirection") || game.settings.get(MODULE_ID, "facing-direction");
const tokenFlipOrRotate = tokenDocument.getFlag(MODULE_ID, "flipOrRotate") || "global";
const facingDirection = tokenFlipOrRotate == "global" ? game.settings.get(MODULE_ID, "facing-direction") : tokenDocument.getFlag(MODULE_ID, "facingDirection");
const mirrorX = "scaleX";
const mirrorY = "scaleY";
if (facingDirection === "right") {
Expand Down

0 comments on commit 7bd7f82

Please sign in to comment.