foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
192 stars 10 forks source link

`Scene#_onUpdate` still uses the deprecated `Scene#darkness` when the darkness level changes #10807

Closed In3luki closed 2 weeks ago

In3luki commented 2 weeks ago

What happened?

Line 21398-21403 in foundry.js:

      // Progress darkness level
      if (changedKeys.has("environment.darknessLevel") && options.animateDarkness) {
        return canvas.effects.animateDarkness(changed.darkness, {
          duration: typeof options.animateDarkness === "number" ? options.animateDarkness : undefined
        });
      }

changed.darkness emits the deprecation warning.

What ways of accessing Foundry can you encounter this issue in?

Reproduction Steps

Transition scene darkness to night or day with the SceneControl buttons.

What core version are you reporting this for?

Version 12 Build 320

Relevant log output

No response

Bug Checklist