From 52bc744642c316a0414bc985e997b6f568a2fe39 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Fri, 26 Apr 2024 17:22:54 +0300 Subject: [PATCH] Fix reading backlight power in NIF stream version 132 --- components/nif/property.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nif/property.cpp b/components/nif/property.cpp index 2a5f91385d8..00ffe9f14a0 100644 --- a/components/nif/property.cpp +++ b/components/nif/property.cpp @@ -325,7 +325,7 @@ namespace Nif { nif->read(mSubsurfaceRolloff); nif->read(mRimlightPower); - if (nif->getBethVersion() == 130 && mRimlightPower == std::numeric_limits::max()) + if (mRimlightPower == std::numeric_limits::max()) nif->read(mBacklightPower); }