1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
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
..
2021-08-08 17:25:57 +01:00
2010-08-07 20:25:17 +02:00
2020-06-07 15:51:03 +04:00
2021-04-30 20:49:22 +02:00
2021-11-02 18:01:22 +01:00
2021-11-02 18:01:22 +01:00
2021-10-23 10:31:46 +02:00
2021-04-11 14:46:51 +02:00
2021-10-20 23:02:15 +02:00
2021-10-20 23:02:15 +02:00
2019-02-23 08:02:12 +04:00
2021-10-10 13:13:57 +02:00
2020-03-14 09:38:24 +01:00
2015-04-21 23:40:10 +02:00
2020-03-14 09:38:24 +01:00
2021-08-15 19:50:28 +02:00
2021-10-25 15:04:55 -07:00
2021-08-04 17:49:57 -07:00
2021-08-04 17:49:57 -07:00
2021-10-27 09:16:01 -07:00
2021-10-27 09:16:01 -07:00
2021-10-27 09:16:01 -07:00