1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 09:15:35 +00:00
openmw/apps
Bo Svensson 3042c000c6
fixes setActorFade logic errors (#3195)
* resets state updater to apply light settings (#3141)

resets state updater to apply light settings

With this PR we achieve the same effect with fewer lines of code.

* fixes LightSource logic errors

We currently update `LightSource::setActorFade` in `TransparencyUpdater`. There are several logic errors inherent in this approach:
1. We fail to update `LightSource::setActorFade` for off screen actors because their `TransparencyUpdater` cull callback is not invoked.
2. We fail to update `LightSource::setActorFade` in the instant that a `TransparencyUpdater` is removed.
3. We fail to update `setActorFade` when an `mExtraLightSource` is created after calling `Animation::setAlpha`.
With this PR we avoid such issues by updating `LightSource::setActorFade` in `Animation::setAlpha` and `Animation::addExtraLightSource` instead.
2021-11-04 16:53:57 +01:00
..
benchmarks Store heightfields as array of heights instead of triangles 2021-07-26 00:22:21 +02:00
bsatool cleans up BSAFile (#3177) 2021-10-14 14:46:44 +02:00
esmtool Do not use union to access FIXED_STRING<4> as int 2021-10-17 17:16:21 +02:00
essimporter Do not use union to access FIXED_STRING<4> as int 2021-10-17 17:16:21 +02:00
launcher Support *.omwscripts in openmw-launcher 2021-10-29 20:09:47 +02:00
mwiniimporter Using auto keyword in most apps 2021-05-18 19:20:59 -05:00
niftest Use recurse subdirectory iterator to iterate over the VFS without exposing internal details 2021-09-14 18:09:54 +02:00
opencs Support *.omwscripts in openmw-launcher 2021-10-29 20:09:47 +02:00
openmw fixes setActorFade logic errors (#3195) 2021-11-04 16:53:57 +01:00
openmw_test_suite refactors parentFileIndices (#3211) 2021-11-03 11:07:28 +01:00
wizard Remove 'no relevant classes' moc warning 2021-09-14 11:20:18 +02:00
doc.hpp