aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-10-09 03:27:47 -0700
committerMcCabe Maxsted2010-10-09 03:27:47 -0700
commit1866bc2af39189c17b636970d4df7edc983c1830 (patch)
treee60963a49832280cf3d2d9b5a8b589853469caee /linden/indra/newview/llvoavatar.cpp
parentUse all those cores for compile (diff)
downloadmeta-impy-1866bc2af39189c17b636970d4df7edc983c1830.zip
meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.tar.gz
meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.tar.bz2
meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.tar.xz
Applied RLVa-1.1.2-Imprudence.patch by Kitty Barnett
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r--linden/indra/newview/llvoavatar.cpp58
1 files changed, 37 insertions, 21 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 3be166e..d2aa3d8 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -96,7 +96,7 @@
96#include "hippoLimits.h"// getMaxPrimScale 96#include "hippoLimits.h"// getMaxPrimScale
97 97
98// [RLVa:KB] 98// [RLVa:KB]
99#include "llstartup.h" 99#include "rlvhandler.h"
100// [/RLVa:KB] 100// [/RLVa:KB]
101 101
102using namespace LLVOAvatarDefines; 102using namespace LLVOAvatarDefines;
@@ -3473,10 +3473,10 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3473 BOOL render_name = visible_chat || 3473 BOOL render_name = visible_chat ||
3474 (visible_avatar && 3474 (visible_avatar &&
3475// [RLVa:KB] - Checked: 2009-08-11 (RLVa-1.0.1h) | Added: RLVa-1.0.0h 3475// [RLVa:KB] - Checked: 2009-08-11 (RLVa-1.0.1h) | Added: RLVa-1.0.0h
3476 ( (!fRlvShowNames) || (RlvSettings::fShowNameTags) ) && 3476 ( (!fRlvShowNames) || (RlvSettings::getShowNameTags()) ) &&
3477// [/RLVa:KB] 3477// [/RLVa:KB]
3478 ((sRenderName == RENDER_NAME_ALWAYS) || 3478 ((sRenderName == RENDER_NAME_ALWAYS) ||
3479 (sRenderName == RENDER_NAME_FADE && time_visible < NAME_SHOW_TIME))); 3479 (sRenderName == RENDER_NAME_FADE && time_visible < NAME_SHOW_TIME)));
3480 // If it's your own avatar, don't draw in mouselook, and don't 3480 // If it's your own avatar, don't draw in mouselook, and don't
3481 // draw if we're specifically hiding our own name. 3481 // draw if we're specifically hiding our own name.
3482 if (mIsSelf) 3482 if (mIsSelf)
@@ -3506,7 +3506,7 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3506 } 3506 }
3507 else if (sRenderGroupTitles != mRenderGroupTitles) 3507 else if (sRenderGroupTitles != mRenderGroupTitles)
3508// [/RLVa] 3508// [/RLVa]
3509 //if (sRenderGroupTitles != mRenderGroupTitles) 3509// if (sRenderGroupTitles != mRenderGroupTitles)
3510 { 3510 {
3511 mRenderGroupTitles = sRenderGroupTitles; 3511 mRenderGroupTitles = sRenderGroupTitles;
3512 new_name = TRUE; 3512 new_name = TRUE;
@@ -3662,7 +3662,7 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3662 } 3662 }
3663 else 3663 else
3664 { 3664 {
3665 line = gRlvHandler.getAnonym(line.assign(firstname->getString()).append(" ").append(lastname->getString())); 3665 line = RlvStrings::getAnonym(line.assign(firstname->getString()).append(" ").append(lastname->getString()));
3666 } 3666 }
3667// [/RLVa:KB] 3667// [/RLVa:KB]
3668 3668
@@ -6746,14 +6746,6 @@ void LLVOAvatar::sitOnObject(LLViewerObject *sit_object)
6746 gPipeline.markMoved(mDrawable, TRUE); 6746 gPipeline.markMoved(mDrawable, TRUE);
6747 mIsSitting = TRUE; 6747 mIsSitting = TRUE;
6748 LLFloaterAO::ChangeStand(); 6748 LLFloaterAO::ChangeStand();
6749// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.1d
6750 #ifdef RLV_EXTENSION_STARTLOCATION
6751 if (rlv_handler_t::isEnabled())
6752 {
6753 RlvSettings::updateLoginLastLocation();
6754 }
6755 #endif // RLV_EXTENSION_STARTLOCATION
6756// [/RLVa:KB]
6757 mRoot.getXform()->setParent(&sit_object->mDrawable->mXform); // LLVOAvatar::sitOnObject 6749 mRoot.getXform()->setParent(&sit_object->mDrawable->mXform); // LLVOAvatar::sitOnObject
6758 mRoot.setPosition(getPosition()); 6750 mRoot.setPosition(getPosition());
6759 mRoot.updateWorldMatrixChildren(); 6751 mRoot.updateWorldMatrixChildren();
@@ -6762,6 +6754,15 @@ void LLVOAvatar::sitOnObject(LLViewerObject *sit_object)
6762 6754
6763 if (mIsSelf) 6755 if (mIsSelf)
6764 { 6756 {
6757// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.1d
6758 #ifdef RLV_EXTENSION_STARTLOCATION
6759 if (rlv_handler_t::isEnabled())
6760 {
6761 RlvSettings::updateLoginLastLocation();
6762 }
6763 #endif // RLV_EXTENSION_STARTLOCATION
6764// [/RLVa:KB]
6765
6765 // Might be first sit 6766 // Might be first sit
6766 LLFirstUse::useSit(); 6767 LLFirstUse::useSit();
6767 6768
@@ -6815,14 +6816,6 @@ void LLVOAvatar::getOffObject()
6815 gPipeline.markMoved(mDrawable, TRUE); 6816 gPipeline.markMoved(mDrawable, TRUE);
6816 6817
6817 mIsSitting = FALSE; 6818 mIsSitting = FALSE;
6818// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.1d
6819 #ifdef RLV_EXTENSION_STARTLOCATION
6820 if (rlv_handler_t::isEnabled())
6821 {
6822 RlvSettings::updateLoginLastLocation();
6823 }
6824 #endif // RLV_EXTENSION_STARTLOCATION
6825// [/RLVa:KB]
6826 mRoot.getXform()->setParent(NULL); // LLVOAvatar::getOffObject 6819 mRoot.getXform()->setParent(NULL); // LLVOAvatar::getOffObject
6827 mRoot.setPosition(cur_position_world); 6820 mRoot.setPosition(cur_position_world);
6828 mRoot.setRotation(cur_rotation_world); 6821 mRoot.setRotation(cur_rotation_world);
@@ -6833,6 +6826,15 @@ void LLVOAvatar::getOffObject()
6833 6826
6834 if (mIsSelf) 6827 if (mIsSelf)
6835 { 6828 {
6829// [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | Added: RLVa-0.2.1d
6830 #ifdef RLV_EXTENSION_STARTLOCATION
6831 if (rlv_handler_t::isEnabled())
6832 {
6833 RlvSettings::updateLoginLastLocation();
6834 }
6835 #endif // RLV_EXTENSION_STARTLOCATION
6836// [/RLVa:KB]
6837
6836 LLQuaternion av_rot = gAgent.getFrameAgent().getQuaternion(); 6838 LLQuaternion av_rot = gAgent.getFrameAgent().getQuaternion();
6837 LLQuaternion obj_rot = sit_object ? sit_object->getRenderRotation() : LLQuaternion::DEFAULT; 6839 LLQuaternion obj_rot = sit_object ? sit_object->getRenderRotation() : LLQuaternion::DEFAULT;
6838 av_rot = av_rot * obj_rot; 6840 av_rot = av_rot * obj_rot;
@@ -6908,6 +6910,20 @@ LLViewerObject* LLVOAvatar::getWornAttachment( const LLUUID& inv_item_id )
6908 return NULL; 6910 return NULL;
6909} 6911}
6910 6912
6913// [RLVa:KB] - Checked: 2009-12-18 (RLVa-1.1.0i) | Added: RLVa-1.1.0i
6914LLViewerJointAttachment* LLVOAvatar::getWornAttachmentPoint(const LLUUID& inv_item_id)
6915{
6916 for (attachment_map_t::const_iterator itAttach = mAttachmentPoints.begin();
6917 itAttach != mAttachmentPoints.end(); ++itAttach)
6918 {
6919 LLViewerJointAttachment* pAttachPt = itAttach->second;
6920 if (pAttachPt->getItemID() == inv_item_id)
6921 return pAttachPt;
6922 }
6923 return NULL;
6924}
6925// [/RLVa:KB]
6926
6911const std::string LLVOAvatar::getAttachedPointName(const LLUUID& inv_item_id) 6927const std::string LLVOAvatar::getAttachedPointName(const LLUUID& inv_item_id)
6912{ 6928{
6913 for (attachment_map_t::iterator iter = mAttachmentPoints.begin(); 6929 for (attachment_map_t::iterator iter = mAttachmentPoints.begin();