summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorrichard <none@none>2009-12-08 11:43:38 -0800
committerrichard <none@none>2009-12-08 11:43:38 -0800
commitfa4d3e186741e89be62cf41da27c97820aa74982 (patch)
treeb35b6bb7a8a59dca7639aecf0487168c159bd683 /indra/newview/llviewermenu.cpp
parente07ef0d0e0e8cbd58afd4c6ee970634bd2f783e7 (diff)
parent0a57b11741a6988632ef2942fc24f07fd5dcf362 (diff)
Merge
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index bf4d0c78e6..2353484ece 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -45,6 +45,7 @@
#include "llagentwearables.h"
#include "llagentpilot.h"
#include "llcompilequeue.h"
+#include "llconsole.h"
#include "lldebugview.h"
#include "llfilepicker.h"
#include "llfirstuse.h"
@@ -487,7 +488,7 @@ class LLAdvancedToggleConsole : public view_listener_t
}
else if ("debug" == console_type)
{
- toggle_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) );
+ toggle_visibility( (void*)static_cast<LLUICtrl*>(gDebugView->mDebugConsolep));
}
else if (gTextureSizeView && "texture size" == console_type)
{
@@ -2309,6 +2310,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 +2704,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 +2717,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;
}