Merge branch 'morefunfallout4discoveries' into 'master'

Fix reading BSLightingShaderProperty backlight power in NIF Bethesda stream version 132

See merge request OpenMW/openmw!4058
pull/3235/head
psi29a 8 months ago
commit 1eb6b322a7

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

Loading…
Cancel
Save