Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation shows off center when scale > 1 #61

Open
ghost opened this issue Jan 22, 2022 · 0 comments
Open

Animation shows off center when scale > 1 #61

ghost opened this issue Jan 22, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 22, 2022

Describe the bug
When creating an animation, it rotates off center if the scale is > 1.

To Reproduce
Steps to reproduce the behavior:

  1. Click "Add Animation" button on the Foundry UI
  2. Click on "Add New" (or "Update" to change parameters of an existing)
  3. Set as follows:
    Scale: 2
    Speed of Rotation: 10
    Radius of Rotation: 0
    Copies: 1
    X Scale: 0.5
    Y Scale: 0.5
  4. Click "Create"

Expected behavior
Animation should rotate around the token with the center of the animation centered on the token.

Screenshots
Settings:
image
Expected position:
image
Actual Position:
image

Environment:

  • Windows 10
  • Browser Chrome 97.0.4692.71
  • Foundry Version 9.242
  • Module Version 0.2.7
  • All Modules Disabled: Yes
  • Module List if no:

Additional context
I ran the debugger in the Chrome console and checked the code in the RenderAnim function. I think the textureSize variable should be multiplied by the scale variable. Caveat: I'm not primarily a Javascript developer, so please take that with a grain of salt. If I alter the value manually when debugging it works, but I don't know what side effects it could have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants