summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-12-07 10:43:53 -0800
committerJames Cook <james@lindenlab.com>2009-12-07 10:43:53 -0800
commit73abaaddd68186dee0c59d37375407a89f77183c (patch)
treec7f7daa35ca0e7cbf9df18648b1a97cecadac80a /indra/newview/llviewermenu.cpp
parent329d5553027c5a1aacae6b01dc57db8f94510b6d (diff)
parent864dd45b2b8dec32552112ed76246c9b0b3f7f0b (diff)
merge
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index e68594ed6f..9c52153ee4 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -2309,6 +2309,12 @@ class LLObjectEnableReportAbuse : public view_listener_t
bool handleEvent(const LLSD& userdata)
{
bool new_value = LLSelectMgr::getInstance()->getSelection()->getObjectCount() != 0;
+/* // all the faces needs to be selected
+ if(LLSelectMgr::getInstance()->getSelection()->contains(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(),SELECT_ALL_TES ))
+ {
+ new_value = true;
+ }
+ */
return new_value;
}
};
@@ -2697,6 +2703,7 @@ BOOL enable_has_attachments(void*)
bool enable_object_mute()
{
LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject();
+
bool new_value = (object != NULL);
if (new_value)
{
@@ -2709,6 +2716,19 @@ bool enable_object_mute()
BOOL is_self = avatar->isSelf();
new_value = !is_linden && !is_self;
}
+ else
+ {
+ if( LLSelectMgr::getInstance()->getSelection()->contains(object,SELECT_ALL_TES ))
+ {
+ new_value = true;
+ }
+ else
+ {
+ new_value = false;
+ }
+
+ }
+
}
return new_value;
}