erithtotl / wall-height

New fork of original project for continued improvements.
https://github.com/erithtotl/wall-height
GNU General Public License v3.0
6 stars 9 forks source link

Walls intersect with lights based on the elevation of last selected token #45

Open strongpauly opened 2 years ago

strongpauly commented 2 years ago

Light rendering is inconsistently determined by selection of tokens.

Foundry and System version: Foundry 9.242 DnD5e 1.5.6 OS, Hosting, Browser : Seen on MacOS Electron, and Chrome Ubuntu Linux Hosted

Steps to reproduce:

  1. Create a wall with height from top -1, bottom -10.
  2. Place a token (Token A) with vision on one side of the wall, with elevation -10.
  3. Place a second token (Token B) with vision on the same side of the wall, but with elevation 0.
  4. Place a light on the opposite side of the wall - light is rendered as if the wall wasn't there.
  5. Select Token A.
  6. Move the light - light is rendered as if the wall is there.
  7. Select Token B.
  8. Move the light - light is rendered as if the wall isn't there again.

Expected Result: Light sources should be rendered based on the perspective of the currently selected token(s).

Video showing issue https://user-images.githubusercontent.com/853954/148652333-b6a529cd-28e6-43b9-bf09-b0e04dbf308e.mov

I appreciate that this might fall under the "better support for lighting" future idea, but it seems that it might be a bug.