When using the default setting (layer 1 set only) nothing is stored in the tscn file for a Light2D, hence it relies on the value in the constructor. The problem is the constructed value is 1 in Light2D, and -1 in RasterizerCanvas::Light. -1 results in all bits being set so all occluders are shown, rather than just those in layer 1. This PR changes Rasterizer::Canvas constructor to set to 1. An alternative is to have -1 as the value for layer 1 throughout. (cherry picked from commit bf54fa5a62a980f5c4339137f9e2c6147642962c)
Name |
Last commit
|
Last update |
---|---|---|
.github | Loading commit data... | |
core | Loading commit data... | |
doc | Loading commit data... | |
drivers | Loading commit data... | |
editor | Loading commit data... | |
main | Loading commit data... | |
misc | Loading commit data... | |
modules | Loading commit data... | |
platform | Loading commit data... | |
scene | Loading commit data... | |
servers | Loading commit data... | |
thirdparty | Loading commit data... | |
.appveyor.yml | Loading commit data... | |
.clang-format | Loading commit data... | |
.clang-tidy | Loading commit data... | |
.editorconfig | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
.mailmap | Loading commit data... | |
.travis.yml | Loading commit data... | |
AUTHORS.md | Loading commit data... | |
CHANGELOG.md | Loading commit data... | |
CODE_OF_CONDUCT.md | Loading commit data... | |
CONTRIBUTING.md | Loading commit data... | |
COPYRIGHT.txt | Loading commit data... | |
DONORS.md | Loading commit data... | |
LICENSE.txt | Loading commit data... | |
LOGO_LICENSE.md | Loading commit data... | |
README.md | Loading commit data... | |
SConstruct | Loading commit data... | |
gles_builders.py | Loading commit data... | |
icon.png | Loading commit data... | |
icon.svg | Loading commit data... | |
logo.png | Loading commit data... | |
logo.svg | Loading commit data... | |
methods.py | Loading commit data... | |
platform_methods.py | Loading commit data... | |
version.py | Loading commit data... |