dev7355608 / perfect-vision

Foundry VTT Module: Lighting Drawings and Vision Limitation.

Home Page:https://foundryvtt.com/packages/perfect-vision

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running a reset fow and close doors macro freezes the scene

Cempres opened this issue · comments

Expected Behavior

Trying to run the following macro ends in freezing the whole scene until reload.
Macro:
const updates = canvas.walls.doors.filter(i => i.data.ds < 2).map(i => ({_id: i.id, ds: 0}));
await canvas.scene.updateEmbeddedDocuments('Wall', updates);

canvas.fog.reset()

works without issues when turning off the module.

Current Behavior

Screenshot of the error:
image

Steps to Reproduce

1.Run the macro while moving a token
2. f12 will shrink the screen and the scene will be completely unsusable

Context

No response

Version

v4.0.17

Foundry VTT Version

v10.286

Operating System

Windows

Browser / App

Native App (Electron)

Game System

dnd5e (2.0.2)

Relevant Modules

No response

Thanks for the report! Fixed in 4.0.18.