1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 10:15:33 +00:00

Fix reading backlight power in NIF stream version 132

This commit is contained in:
Alexei Kotov 2024-04-26 17:22:54 +03:00
parent ec8675ba6f
commit 52bc744642

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);
}