diff options
author | Jacek Antonelli | 2008-10-17 20:01:38 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-10-17 20:01:38 -0500 |
commit | fdf944fb0355249d73c4e25ee86e9ffd378e7d4b (patch) | |
tree | 2e5c51fe0e6d5757f984721e01cc097801d927e7 /linden/indra/newview/llviewermenu.cpp | |
parent | Rebranded Windows-specific installer/support files. (diff) | |
parent | Updated source to SL version 1.21.6. (diff) | |
download | meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.zip meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.gz meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.bz2 meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.xz |
Merge branch 'merge-1.21.6' into rebranding
Conflicts:
linden/indra/newview/installers/windows/installer_template.nsi
linden/indra/newview/llappviewer.cpp
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 8165e55..5e67712 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -1517,7 +1517,7 @@ class LLObjectReportAbuse : public view_listener_t | |||
1517 | { | 1517 | { |
1518 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1518 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1519 | { | 1519 | { |
1520 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1520 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1521 | if (objectp) | 1521 | if (objectp) |
1522 | { | 1522 | { |
1523 | LLFloaterReporter::showFromObject(objectp->getID()); | 1523 | LLFloaterReporter::showFromObject(objectp->getID()); |
@@ -1541,7 +1541,7 @@ class LLObjectTouch : public view_listener_t | |||
1541 | { | 1541 | { |
1542 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1542 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1543 | { | 1543 | { |
1544 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1544 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1545 | if (!object) return true; | 1545 | if (!object) return true; |
1546 | 1546 | ||
1547 | LLPickInfo pick = LLToolPie::getInstance()->getPick(); | 1547 | LLPickInfo pick = LLToolPie::getInstance()->getPick(); |
@@ -1592,7 +1592,7 @@ class LLObjectEnableTouch : public view_listener_t | |||
1592 | { | 1592 | { |
1593 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 1593 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
1594 | { | 1594 | { |
1595 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1595 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1596 | bool new_value = obj && obj->flagHandleTouch(); | 1596 | bool new_value = obj && obj->flagHandleTouch(); |
1597 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 1597 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
1598 | 1598 | ||
@@ -1626,7 +1626,7 @@ void label_touch(std::string& label, void*) | |||
1626 | 1626 | ||
1627 | bool handle_object_open() | 1627 | bool handle_object_open() |
1628 | { | 1628 | { |
1629 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1629 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1630 | if(!obj) return true; | 1630 | if(!obj) return true; |
1631 | 1631 | ||
1632 | LLFloaterOpenObject::show(); | 1632 | LLFloaterOpenObject::show(); |
@@ -1647,7 +1647,7 @@ class LLObjectEnableOpen : public view_listener_t | |||
1647 | { | 1647 | { |
1648 | // Look for contents in root object, which is all the LLFloaterOpenObject | 1648 | // Look for contents in root object, which is all the LLFloaterOpenObject |
1649 | // understands. | 1649 | // understands. |
1650 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 1650 | LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
1651 | bool new_value = (obj != NULL); | 1651 | bool new_value = (obj != NULL); |
1652 | if (new_value) | 1652 | if (new_value) |
1653 | { | 1653 | { |
@@ -1688,7 +1688,7 @@ bool toggle_build_mode() | |||
1688 | gViewerWindow->showCursor(); | 1688 | gViewerWindow->showCursor(); |
1689 | } | 1689 | } |
1690 | // avoid spurious avatar movements pulling out of edit mode | 1690 | // avoid spurious avatar movements pulling out of edit mode |
1691 | LLViewerJoystick::getInstance()->moveAvatar(true); | 1691 | LLViewerJoystick::getInstance()->setNeedsReset(); |
1692 | } | 1692 | } |
1693 | else | 1693 | else |
1694 | { | 1694 | { |
@@ -1727,7 +1727,7 @@ bool toggle_build_mode() | |||
1727 | gAgent.resetView(false); | 1727 | gAgent.resetView(false); |
1728 | 1728 | ||
1729 | // avoid spurious avatar movements | 1729 | // avoid spurious avatar movements |
1730 | LLViewerJoystick::getInstance()->moveAvatar(true); | 1730 | LLViewerJoystick::getInstance()->setNeedsReset(); |
1731 | 1731 | ||
1732 | } | 1732 | } |
1733 | return true; | 1733 | return true; |
@@ -2000,7 +2000,7 @@ BOOL enable_has_attachments(void*) | |||
2000 | void handle_follow(void *userdata) | 2000 | void handle_follow(void *userdata) |
2001 | { | 2001 | { |
2002 | // follow a given avatar by ID | 2002 | // follow a given avatar by ID |
2003 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2003 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2004 | if (objectp) | 2004 | if (objectp) |
2005 | { | 2005 | { |
2006 | gAgent.startFollowPilot(objectp->getID()); | 2006 | gAgent.startFollowPilot(objectp->getID()); |
@@ -2011,7 +2011,7 @@ class LLObjectEnableMute : public view_listener_t | |||
2011 | { | 2011 | { |
2012 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2012 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2013 | { | 2013 | { |
2014 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2014 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2015 | bool new_value = (object != NULL); | 2015 | bool new_value = (object != NULL); |
2016 | if (new_value) | 2016 | if (new_value) |
2017 | { | 2017 | { |
@@ -2034,7 +2034,7 @@ class LLObjectMute : public view_listener_t | |||
2034 | { | 2034 | { |
2035 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2035 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2036 | { | 2036 | { |
2037 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2037 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2038 | if (!object) return true; | 2038 | if (!object) return true; |
2039 | 2039 | ||
2040 | LLUUID id; | 2040 | LLUUID id; |
@@ -2164,7 +2164,7 @@ class LLAvatarFreeze : public view_listener_t | |||
2164 | { | 2164 | { |
2165 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2165 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2166 | { | 2166 | { |
2167 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2167 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2168 | if( avatar ) | 2168 | if( avatar ) |
2169 | { | 2169 | { |
2170 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); | 2170 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); |
@@ -2214,7 +2214,7 @@ class LLAvatarDebug : public view_listener_t | |||
2214 | { | 2214 | { |
2215 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2215 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2216 | { | 2216 | { |
2217 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2217 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2218 | if( avatar ) | 2218 | if( avatar ) |
2219 | { | 2219 | { |
2220 | avatar->dumpLocalTextures(); | 2220 | avatar->dumpLocalTextures(); |
@@ -2266,7 +2266,7 @@ class LLAvatarEject : public view_listener_t | |||
2266 | { | 2266 | { |
2267 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2267 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2268 | { | 2268 | { |
2269 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2269 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2270 | if( avatar ) | 2270 | if( avatar ) |
2271 | { | 2271 | { |
2272 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); | 2272 | LLUUID* avatar_id = new LLUUID( avatar->getID() ); |
@@ -2296,7 +2296,7 @@ class LLAvatarEnableFreezeEject : public view_listener_t | |||
2296 | { | 2296 | { |
2297 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2297 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2298 | { | 2298 | { |
2299 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 2299 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
2300 | bool new_value = (avatar != NULL); | 2300 | bool new_value = (avatar != NULL); |
2301 | 2301 | ||
2302 | if (new_value) | 2302 | if (new_value) |
@@ -2321,7 +2321,7 @@ class LLAvatarGiveCard : public view_listener_t | |||
2321 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2321 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2322 | { | 2322 | { |
2323 | llinfos << "handle_give_card()" << llendl; | 2323 | llinfos << "handle_give_card()" << llendl; |
2324 | LLViewerObject* dest = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 2324 | LLViewerObject* dest = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
2325 | if(dest && dest->isAvatar()) | 2325 | if(dest && dest->isAvatar()) |
2326 | { | 2326 | { |
2327 | bool found_name = false; | 2327 | bool found_name = false; |
@@ -2778,7 +2778,7 @@ class LLAvatarEnableAddFriend : public view_listener_t | |||
2778 | { | 2778 | { |
2779 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 2779 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
2780 | { | 2780 | { |
2781 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getFirstObject()); | 2781 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()); |
2782 | bool new_value = avatar && !is_agent_friend(avatar->getID()); | 2782 | bool new_value = avatar && !is_agent_friend(avatar->getID()); |
2783 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 2783 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
2784 | return true; | 2784 | return true; |
@@ -3293,7 +3293,7 @@ class LLEditEnableDuplicate : public view_listener_t | |||
3293 | 3293 | ||
3294 | void disabled_duplicate(void*) | 3294 | void disabled_duplicate(void*) |
3295 | { | 3295 | { |
3296 | if (LLSelectMgr::getInstance()->getSelection()->getFirstObject()) | 3296 | if (LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()) |
3297 | { | 3297 | { |
3298 | LLNotifyBox::showXml("CopyFailed"); | 3298 | LLNotifyBox::showXml("CopyFailed"); |
3299 | } | 3299 | } |
@@ -4907,13 +4907,20 @@ class LLToolsLookAtSelection : public view_listener_t | |||
4907 | LLVector3 obj_to_cam = LLViewerCamera::getInstance()->getOrigin() - selection_bbox.getCenterAgent(); | 4907 | LLVector3 obj_to_cam = LLViewerCamera::getInstance()->getOrigin() - selection_bbox.getCenterAgent(); |
4908 | obj_to_cam.normVec(); | 4908 | obj_to_cam.normVec(); |
4909 | 4909 | ||
4910 | LLUUID object_id; | ||
4911 | if (LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()) | ||
4912 | { | ||
4913 | object_id = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()->mID; | ||
4914 | } | ||
4910 | if (zoom) | 4915 | if (zoom) |
4911 | { | 4916 | { |
4912 | gAgent.setCameraPosAndFocusGlobal(LLSelectMgr::getInstance()->getSelectionCenterGlobal() + LLVector3d(obj_to_cam * distance), LLSelectMgr::getInstance()->getSelectionCenterGlobal(), LLSelectMgr::getInstance()->getSelection()->getFirstObject()->mID ); | 4917 | gAgent.setCameraPosAndFocusGlobal(LLSelectMgr::getInstance()->getSelectionCenterGlobal() + LLVector3d(obj_to_cam * distance), |
4918 | LLSelectMgr::getInstance()->getSelectionCenterGlobal(), | ||
4919 | object_id ); | ||
4913 | } | 4920 | } |
4914 | else | 4921 | else |
4915 | { | 4922 | { |
4916 | gAgent.setFocusGlobal( LLSelectMgr::getInstance()->getSelectionCenterGlobal(), LLSelectMgr::getInstance()->getSelection()->getFirstObject()->mID ); | 4923 | gAgent.setFocusGlobal( LLSelectMgr::getInstance()->getSelectionCenterGlobal(), object_id ); |
4917 | } | 4924 | } |
4918 | } | 4925 | } |
4919 | return true; | 4926 | return true; |
@@ -4948,7 +4955,7 @@ class LLAvatarInviteToGroup : public view_listener_t | |||
4948 | { | 4955 | { |
4949 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4956 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4950 | { | 4957 | { |
4951 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 4958 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
4952 | if(avatar) | 4959 | if(avatar) |
4953 | { | 4960 | { |
4954 | invite_to_group(avatar->getID()); | 4961 | invite_to_group(avatar->getID()); |
@@ -4961,7 +4968,7 @@ class LLAvatarAddFriend : public view_listener_t | |||
4961 | { | 4968 | { |
4962 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 4969 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
4963 | { | 4970 | { |
4964 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 4971 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
4965 | if(avatar && !is_agent_friend(avatar->getID())) | 4972 | if(avatar && !is_agent_friend(avatar->getID())) |
4966 | { | 4973 | { |
4967 | request_friendship(avatar->getID()); | 4974 | request_friendship(avatar->getID()); |
@@ -5034,11 +5041,11 @@ class LLEnablePayObject : public view_listener_t | |||
5034 | { | 5041 | { |
5035 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 5042 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
5036 | { | 5043 | { |
5037 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getFirstObject()); | 5044 | LLVOAvatar* avatar = find_avatar_from_object(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()); |
5038 | bool new_value = (avatar != NULL); | 5045 | bool new_value = (avatar != NULL); |
5039 | if (!new_value) | 5046 | if (!new_value) |
5040 | { | 5047 | { |
5041 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5048 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5042 | if( object ) | 5049 | if( object ) |
5043 | { | 5050 | { |
5044 | LLViewerObject *parent = (LLViewerObject *)object->getParent(); | 5051 | LLViewerObject *parent = (LLViewerObject *)object->getParent(); |
@@ -5058,7 +5065,7 @@ class LLObjectEnableSitOrStand : public view_listener_t | |||
5058 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 5065 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
5059 | { | 5066 | { |
5060 | bool new_value = false; | 5067 | bool new_value = false; |
5061 | LLViewerObject* dest_object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5068 | LLViewerObject* dest_object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5062 | 5069 | ||
5063 | if(dest_object) | 5070 | if(dest_object) |
5064 | { | 5071 | { |
@@ -5423,7 +5430,7 @@ class LLShowAgentProfile : public view_listener_t | |||
5423 | } | 5430 | } |
5424 | else if (userdata.asString() == "hit object") | 5431 | else if (userdata.asString() == "hit object") |
5425 | { | 5432 | { |
5426 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5433 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5427 | if (objectp) | 5434 | if (objectp) |
5428 | { | 5435 | { |
5429 | agent_id = objectp->getID(); | 5436 | agent_id = objectp->getID(); |
@@ -5644,7 +5651,7 @@ class LLAttachmentDrop : public view_listener_t | |||
5644 | { | 5651 | { |
5645 | // Called when the user clicked on an object attached to them | 5652 | // Called when the user clicked on an object attached to them |
5646 | // and selected "Drop". | 5653 | // and selected "Drop". |
5647 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5654 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5648 | if (!object) | 5655 | if (!object) |
5649 | { | 5656 | { |
5650 | llwarns << "handle_drop_attachment() - no object to drop" << llendl; | 5657 | llwarns << "handle_drop_attachment() - no object to drop" << llendl; |
@@ -5744,7 +5751,7 @@ class LLAttachmentDetach : public view_listener_t | |||
5744 | { | 5751 | { |
5745 | // Called when the user clicked on an object attached to them | 5752 | // Called when the user clicked on an object attached to them |
5746 | // and selected "Detach". | 5753 | // and selected "Detach". |
5747 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5754 | LLViewerObject *object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5748 | if (!object) | 5755 | if (!object) |
5749 | { | 5756 | { |
5750 | llwarns << "handle_detach() - no object to detach" << llendl; | 5757 | llwarns << "handle_detach() - no object to detach" << llendl; |
@@ -5824,7 +5831,7 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
5824 | // in your inventory. Therefore, we disable the drop option until the | 5831 | // in your inventory. Therefore, we disable the drop option until the |
5825 | // item is in your inventory | 5832 | // item is in your inventory |
5826 | 5833 | ||
5827 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5834 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5828 | LLViewerJointAttachment* attachment_pt = NULL; | 5835 | LLViewerJointAttachment* attachment_pt = NULL; |
5829 | LLInventoryItem* item = NULL; | 5836 | LLInventoryItem* item = NULL; |
5830 | 5837 | ||
@@ -5866,7 +5873,7 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
5866 | 5873 | ||
5867 | BOOL enable_detach(void*) | 5874 | BOOL enable_detach(void*) |
5868 | { | 5875 | { |
5869 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 5876 | LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
5870 | if (!object) return FALSE; | 5877 | if (!object) return FALSE; |
5871 | if (!object->isAttachment()) return FALSE; | 5878 | if (!object->isAttachment()) return FALSE; |
5872 | 5879 | ||
@@ -5973,7 +5980,7 @@ class LLAvatarSendIM : public view_listener_t | |||
5973 | { | 5980 | { |
5974 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 5981 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
5975 | { | 5982 | { |
5976 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getFirstObject() ); | 5983 | LLVOAvatar* avatar = find_avatar_from_object( LLSelectMgr::getInstance()->getSelection()->getPrimaryObject() ); |
5977 | if(avatar) | 5984 | if(avatar) |
5978 | { | 5985 | { |
5979 | std::string name("IM"); | 5986 | std::string name("IM"); |
@@ -6797,7 +6804,7 @@ void handle_dump_avatar_local_textures(void*) | |||
6797 | 6804 | ||
6798 | void handle_debug_avatar_textures(void*) | 6805 | void handle_debug_avatar_textures(void*) |
6799 | { | 6806 | { |
6800 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); | 6807 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject(); |
6801 | if (objectp) | 6808 | if (objectp) |
6802 | { | 6809 | { |
6803 | LLFloaterAvatarTextures::show(objectp->getID()); | 6810 | LLFloaterAvatarTextures::show(objectp->getID()); |