diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-01 17:29:08 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-01 17:29:08 +0000 |
commit | e8899c4f4c2ae95f108b9bbf543e401debc9c588 (patch) | |
tree | e21e17e0f666b00b1868f619b4faecca9b99e60d /indra/newview/llvovolume.cpp | |
parent | 04bfd00a5d8ae7326211d867af7c3f577ff06763 (diff) |
start to abstract-out the 'is a spotlight' question so one day we can perhaps make the UI hurt less.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 3f1ddc0ee7..305c0a19d6 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -2462,6 +2462,13 @@ void LLVOVolume::updateSpotLightPriority() } +bool LLVOVolume::isLightSpotlight() +{ + LLLightImageParams* params = (LLLightImageParams*) getParameterEntry(LLNetworkData::PARAMS_LIGHT_IMAGE); + return params->isLightSpotlight(); +} + + LLViewerTexture* LLVOVolume::getLightTexture() { LLUUID id = getLightTextureID(); |