1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:59:54 +00:00

Merge branch 'morefunfallout4discoveries' into 'master'

Fix reading BSLightingShaderProperty backlight power in NIF Bethesda stream version 132

See merge request OpenMW/openmw!4058
This commit is contained in:
psi29a 2024-04-28 07:39:51 +00:00
commit 1eb6b322a7

View file

@ -325,7 +325,7 @@ namespace Nif
{
nif->read(mSubsurfaceRolloff);
nif->read(mRimlightPower);
if (nif->getBethVersion() == 130 && mRimlightPower == std::numeric_limits<float>::max())
if (mRimlightPower == std::numeric_limits<float>::max())
nif->read(mBacklightPower);
}