diff options
author | McCabe Maxsted | 2009-06-11 16:57:52 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-06-11 16:57:52 -0700 |
commit | 34e0daae79ec07f6237e2e5b1028146dde829966 (patch) | |
tree | 2aebe69285c5fbe95b4b265d8a83a509c080b8f0 /linden/indra/newview/llviewermenu.cpp | |
parent | Added patch and .pyc files to .gitignore (diff) | |
parent | Added Link/Unlink options to the object pie menu (diff) | |
download | meta-impy-34e0daae79ec07f6237e2e5b1028146dde829966.zip meta-impy-34e0daae79ec07f6237e2e5b1028146dde829966.tar.gz meta-impy-34e0daae79ec07f6237e2e5b1028146dde829966.tar.bz2 meta-impy-34e0daae79ec07f6237e2e5b1028146dde829966.tar.xz |
Merged in 1.2.0-linkintools
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 4dedf49..838f230 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -4188,9 +4188,17 @@ class LLToolsEnableUnlink : public view_listener_t | |||
4188 | { | 4188 | { |
4189 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4189 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4190 | { | 4190 | { |
4191 | bool new_value = LLSelectMgr::getInstance()->selectGetAllRootsValid() && | 4191 | bool new_value = false; |
4192 | if (LLSelectMgr::getInstance()->selectGetAllRootsValid() && | ||
4192 | LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject() && | 4193 | LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject() && |
4193 | !LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject()->isAttachment(); | 4194 | !LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject()->isAttachment()) |
4195 | { | ||
4196 | if (LLSelectMgr::getInstance()->getSelection()->getRootObjectCount() != | ||
4197 | LLSelectMgr::getInstance()->getSelection()->getObjectCount()) | ||
4198 | { | ||
4199 | new_value = true; | ||
4200 | } | ||
4201 | } | ||
4194 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 4202 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
4195 | return true; | 4203 | return true; |
4196 | } | 4204 | } |