diff options
author | Rye Mutt <lightdrake@gmail.com> | 2020-04-01 00:25:07 +0000 |
---|---|---|
committer | Dave Houlton <euclid@lindenlab.com> | 2020-04-01 00:25:07 +0000 |
commit | 6058c49bb4c4753712d958e5436348218439b911 (patch) | |
tree | 077623f8f1c19dac105d8bba9bbac32455cfa02c /indra/newview/llvovolume.cpp | |
parent | c77e4e7a57ecfece08d1fddb179ca512539660ba (diff) | |
parent | 516ca236597e9e76193dd597edddc6a2fd7b0912 (diff) |
Merged in eep-fix-falloff-edit (pull request #54)
Fix light falloff being corrupted when editing value via build floater spinner
Approved-by: Dave Houlton
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index fe9d770f39..2ffd462ac3 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -3376,12 +3376,12 @@ F32 LLVOVolume::getLightRadius() const } } -F32 LLVOVolume::getLightFalloff() const +F32 LLVOVolume::getLightFalloff(const F32 fudge_factor) const { const LLLightParams *param_block = (const LLLightParams *)getParameterEntry(LLNetworkData::PARAMS_LIGHT); if (param_block) { - return param_block->getFalloff() * 0.5f; + return param_block->getFalloff() * fudge_factor; } else { |