Skip to content

Commit

Permalink
Set fRimPower to 0 if it is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
terry-haire committed Oct 18, 2023
1 parent cd6c25f commit 062c39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spells/convert/c_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ void matFloats(
fGrayscaleToPaletteScale = double(nifDst->get<float>(iShader, "Grayscale to Palette Scale"));
fRefractionPower = double(nifDst->get<float>(iShader, "Refraction Strength"));

if (!isinf(nifDst->get<float>(iShader, "Rimlight Power"))) {
if (json.value("fRimPower").toBool() && !isinf(nifDst->get<float>(iShader, "Rimlight Power"))) {
fRimPower = double(nifDst->get<float>(iShader, "Rimlight Power"));
}

Expand Down

0 comments on commit 062c39e

Please sign in to comment.