diff options
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index bf96ad1..bcc8472 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -778,7 +778,7 @@ LLVOAvatar::LLVOAvatar(const LLUUID& id, | |||
778 | const bool needsSendToSim = false; // currently, this HUD effect doesn't need to pack and unpack data to do its job | 778 | const bool needsSendToSim = false; // currently, this HUD effect doesn't need to pack and unpack data to do its job |
779 | mVoiceVisualizer = ( LLVoiceVisualizer *)LLHUDManager::getInstance()->createViewerEffect( LLHUDObject::LL_HUD_EFFECT_VOICE_VISUALIZER, needsSendToSim ); | 779 | mVoiceVisualizer = ( LLVoiceVisualizer *)LLHUDManager::getInstance()->createViewerEffect( LLHUDObject::LL_HUD_EFFECT_VOICE_VISUALIZER, needsSendToSim ); |
780 | 780 | ||
781 | lldebugs << "LLVOAvatar Constructor (0x" << this << ") id:" << mID << llendl; | 781 | LL_DEBUGS("VOAvatar") << "Constructor (" << this << ") id:" << mID << LL_ENDL; |
782 | 782 | ||
783 | mPelvisp = NULL; | 783 | mPelvisp = NULL; |
784 | 784 | ||
@@ -823,7 +823,7 @@ LLVOAvatar::LLVOAvatar(const LLUUID& id, | |||
823 | { | 823 | { |
824 | mIsSelf = TRUE; | 824 | mIsSelf = TRUE; |
825 | gAgent.setAvatarObject(this); | 825 | gAgent.setAvatarObject(this); |
826 | lldebugs << "Marking avatar as self " << id << llendl; | 826 | LL_DEBUGS("VOAvatar") << "Marking avatar as self " << id << LL_ENDL; |
827 | } | 827 | } |
828 | else | 828 | else |
829 | { | 829 | { |
@@ -1021,12 +1021,16 @@ LLVOAvatar::LLVOAvatar(const LLUUID& id, | |||
1021 | //------------------------------------------------------------------------ | 1021 | //------------------------------------------------------------------------ |
1022 | LLVOAvatar::~LLVOAvatar() | 1022 | LLVOAvatar::~LLVOAvatar() |
1023 | { | 1023 | { |
1024 | lldebugs << "LLVOAvatar Destructor (0x" << this << ") id:" << mID << llendl; | 1024 | LL_DEBUGS("VOAvatar") << "Destructor (" << this << ") id:" << mID << LL_ENDL; |
1025 | 1025 | ||
1026 | if (mIsSelf) | 1026 | if (this==gAgent.getAvatarObject()) |
1027 | { | 1027 | { |
1028 | gAgent.setAvatarObject(NULL); | 1028 | gAgent.setAvatarObject(NULL); |
1029 | } | 1029 | } |
1030 | else if (mIsSelf) | ||
1031 | { | ||
1032 | LL_DEBUGS("VOAvatar") << "Destructing Zombie from previous session." << LL_ENDL; | ||
1033 | } | ||
1030 | 1034 | ||
1031 | mRoot.removeAllChildren(); | 1035 | mRoot.removeAllChildren(); |
1032 | 1036 | ||
@@ -1078,7 +1082,7 @@ LLVOAvatar::~LLVOAvatar() | |||
1078 | 1082 | ||
1079 | mAnimationSources.clear(); | 1083 | mAnimationSources.clear(); |
1080 | 1084 | ||
1081 | lldebugs << "LLVOAvatar Destructor end" << llendl; | 1085 | LL_DEBUGS("VOAvatar") << "Destructor end" << LL_ENDL; |
1082 | } | 1086 | } |
1083 | 1087 | ||
1084 | void LLVOAvatar::markDead() | 1088 | void LLVOAvatar::markDead() |
@@ -1475,6 +1479,8 @@ void LLVOAvatar::cleanupClass() | |||
1475 | sAvatarXmlInfo = NULL; | 1479 | sAvatarXmlInfo = NULL; |
1476 | delete sAvatarSkeletonInfo; | 1480 | delete sAvatarSkeletonInfo; |
1477 | sAvatarSkeletonInfo = NULL; | 1481 | sAvatarSkeletonInfo = NULL; |
1482 | delete sAvatarDictionary; | ||
1483 | sAvatarDictionary = NULL; | ||
1478 | sSkeletonXMLTree.cleanup(); | 1484 | sSkeletonXMLTree.cleanup(); |
1479 | sXMLTree.cleanup(); | 1485 | sXMLTree.cleanup(); |
1480 | } | 1486 | } |
@@ -1923,7 +1929,7 @@ void LLVOAvatar::buildCharacter() | |||
1923 | } | 1929 | } |
1924 | 1930 | ||
1925 | // gPrintMessagesThisFrame = TRUE; | 1931 | // gPrintMessagesThisFrame = TRUE; |
1926 | lldebugs << "Avatar load took " << timer.getElapsedTimeF32() << " seconds." << llendl; | 1932 | LL_DEBUGS("VOAvatar") << "Avatar load took " << timer.getElapsedTimeF32() << " seconds." << LL_ENDL; |
1927 | 1933 | ||
1928 | if ( ! status ) | 1934 | if ( ! status ) |
1929 | { | 1935 | { |
@@ -2040,6 +2046,7 @@ void LLVOAvatar::buildCharacter() | |||
2040 | gAttachBodyPartPieMenus[5] = new LLPieMenu(std::string("Left Leg >")); | 2046 | gAttachBodyPartPieMenus[5] = new LLPieMenu(std::string("Left Leg >")); |
2041 | gAttachBodyPartPieMenus[6] = new LLPieMenu(std::string("Torso >")); | 2047 | gAttachBodyPartPieMenus[6] = new LLPieMenu(std::string("Torso >")); |
2042 | gAttachBodyPartPieMenus[7] = new LLPieMenu(std::string("Right Leg >")); | 2048 | gAttachBodyPartPieMenus[7] = new LLPieMenu(std::string("Right Leg >")); |
2049 | //gAttachBodyPartPieMenus[8] = NULL; | ||
2043 | 2050 | ||
2044 | gDetachBodyPartPieMenus[0] = NULL; | 2051 | gDetachBodyPartPieMenus[0] = NULL; |
2045 | gDetachBodyPartPieMenus[1] = new LLPieMenu(std::string("Right Arm >")); | 2052 | gDetachBodyPartPieMenus[1] = new LLPieMenu(std::string("Right Arm >")); |
@@ -2049,8 +2056,9 @@ void LLVOAvatar::buildCharacter() | |||
2049 | gDetachBodyPartPieMenus[5] = new LLPieMenu(std::string("Left Leg >")); | 2056 | gDetachBodyPartPieMenus[5] = new LLPieMenu(std::string("Left Leg >")); |
2050 | gDetachBodyPartPieMenus[6] = new LLPieMenu(std::string("Torso >")); | 2057 | gDetachBodyPartPieMenus[6] = new LLPieMenu(std::string("Torso >")); |
2051 | gDetachBodyPartPieMenus[7] = new LLPieMenu(std::string("Right Leg >")); | 2058 | gDetachBodyPartPieMenus[7] = new LLPieMenu(std::string("Right Leg >")); |
2059 | //gDetachBodyPartPieMenus[8] = NULL; | ||
2052 | 2060 | ||
2053 | for (S32 i = 0; i < 8; i++) | 2061 | for (S32 i = 0; i < 8 ; i++) |
2054 | { | 2062 | { |
2055 | if (gAttachBodyPartPieMenus[i]) | 2063 | if (gAttachBodyPartPieMenus[i]) |
2056 | { | 2064 | { |