earlSt1 / vtt-custom-nameplates

Custom Nameplates for FoundryVTT
GNU General Public License v3.0
1 stars 2 forks source link

[BUG] Autoscale not working with localStyle #8

Closed kagedansa closed 3 months ago

kagedansa commented 1 year ago

The error occurs because the check for the local autoScale-variable is always "undefined".

To fix this, the if-query in line 101 must be changed.

from:

if ((localStyle[game.scenes.viewed.id] != null && localStyle.autoScale)

to

if ((localStyle[game.scenes.viewed.id] != null && localStyle[game.scenes.viewed.id].autoScale)

earlSt1 commented 1 year ago

Hi, thanks for the report, sorry it's taken a while for me to respond. I'm gonna be doing a bunch of work on this module soon so will include this change with that update

earlSt1 commented 3 months ago

Hi, sorry its 2 years late, been on a long break from foundry dev. Version 2.1.5 onwards should fix this issue. Feel free to open a new issue if it crops up again.