Skip to content

[BUG] #49

Description

@Arkandos

Module Version: v3.1.3

Describe the bug
When placing a template while in template mode and then moving said template, the canvas crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Make an item with a templat.
  2. Switch to template mode in the left sidebar
  3. Use the item and place the template
  4. Click and move the template.
  5. Canvas crashes, see error

Error

Uncaught TypeError: Cannot set properties of undefined (setting 'visible')
[Detected 1 package: ckl-advanced-templates-pf1(3.1.3)]
    at MeasuredTemplatePFAdvanced._refreshState (foundry.mjs:153598:28)
    at MeasuredTemplatePFAdvanced._applyRenderFlags (measured-template-pf-advanced.js:192:38)
    at MeasuredTemplatePFAdvanced.applyRenderFlags (foundry.mjs:82143:10)
    at #applyRenderFlags (foundry.mjs:95603:44)
    at mn.emit (TickerListener.ts:71:47)
    at Pt.update (Ticker.ts:427:37)
    at Ticker.ts:129:22

Browser:

  • Firefox. Tested on chrome as well.

Foundry Version: v13.351

Game System: Pathfinder 1e 11.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions