summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorRye Mutt <lightdrake@gmail.com>2020-04-01 00:25:07 +0000
committerDave Houlton <euclid@lindenlab.com>2020-04-01 00:25:07 +0000
commit6058c49bb4c4753712d958e5436348218439b911 (patch)
tree077623f8f1c19dac105d8bba9bbac32455cfa02c /indra/newview/llvovolume.cpp
parentc77e4e7a57ecfece08d1fddb179ca512539660ba (diff)
parent516ca236597e9e76193dd597edddc6a2fd7b0912 (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.cpp4
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
{