summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelvolume.cpp
diff options
context:
space:
mode:
authorMaximB ProductEngine <mberezhnoy@productengine.com>2013-09-23 20:28:23 +0300
committerMaximB ProductEngine <mberezhnoy@productengine.com>2013-09-23 20:28:23 +0300
commit089081dc802a8efb41d3eda7b2eec6f9637f1c4b (patch)
tree6d08c1ef1cd3691ab225a0c281d002b9d2af62cb /indra/newview/llpanelvolume.cpp
parent3e934d5089abacbfb1c7bfbaff4a2d415587bfbb (diff)
parent3bfac42f07b1896bea3fd1ece762c56e3f1fc819 (diff)
merge
Diffstat (limited to 'indra/newview/llpanelvolume.cpp')
-rwxr-xr-xindra/newview/llpanelvolume.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llpanelvolume.cpp b/indra/newview/llpanelvolume.cpp
index 02d363d795..a1d60b5b16 100755
--- a/indra/newview/llpanelvolume.cpp
+++ b/indra/newview/llpanelvolume.cpp
@@ -710,9 +710,19 @@ void LLPanelVolume::onLightCancelColor(const LLSD& data)
void LLPanelVolume::onLightCancelTexture(const LLSD& data)
{
LLTextureCtrl* LightTextureCtrl = getChild<LLTextureCtrl>("light texture control");
+
if (LightTextureCtrl)
{
- LightTextureCtrl->setImageAssetID(mLightSavedTexture);
+ LightTextureCtrl->setImageAssetID(LLUUID::null);
+ }
+
+ LLVOVolume *volobjp = (LLVOVolume *) mObject.get();
+ if(volobjp)
+ {
+ // Cancel the light texture as requested
+ // NORSPEC-292
+ //
+ volobjp->setLightTextureID(LLUUID::null);
}
}