aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2009-07-09 17:50:25 +0200
committerArmin Weatherwax2009-07-11 13:45:59 +0200
commit29a0f7cfdd33e8d18ad5d932eefa67332d5b5ed3 (patch)
treeb060e2e4849fca702a1cf27fabf5781d09ffa60e /linden/indra/newview/llvoavatar.cpp
parentBroken: relog sometimes works once; fixed inventory and avatar not ruthed any... (diff)
downloadmeta-impy-29a0f7cfdd33e8d18ad5d932eefa67332d5b5ed3.zip
meta-impy-29a0f7cfdd33e8d18ad5d932eefa67332d5b5ed3.tar.gz
meta-impy-29a0f7cfdd33e8d18ad5d932eefa67332d5b5ed3.tar.bz2
meta-impy-29a0f7cfdd33e8d18ad5d932eefa67332d5b5ed3.tar.xz
looks like working now
modified: linden/indra/newview/llchatbar.cpp modified: linden/indra/newview/llviewerwindow.cpp modified: linden/indra/newview/llvoavatar.cpp
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvoavatar.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 3d2523e..999a609 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -691,7 +691,11 @@ LLVOAvatar::LLVOAvatar(
691 mTexEyeColor( NULL ), 691 mTexEyeColor( NULL ),
692 mNeedsSkin(FALSE), 692 mNeedsSkin(FALSE),
693 mUpdatePeriod(1), 693 mUpdatePeriod(1),
694 mFullyLoadedInitialized(FALSE) 694// mFullyLoadedInitialized(FALSE)
695 mPreviousFullyLoaded(FALSE),
696 mVisibleChat( FALSE ),
697 mFullyLoadedInitialized(FALSE),
698 mFullyLoaded(FALSE)
695{ 699{
696 LLMemType mt(LLMemType::MTYPE_AVATAR); 700 LLMemType mt(LLMemType::MTYPE_AVATAR);
697 701
@@ -1807,6 +1811,10 @@ BOOL LLVOAvatar::buildSkeleton(LLVOAvatarSkeletonInfo *info)
1807{ 1811{
1808 LLMemType mt(LLMemType::MTYPE_AVATAR); 1812 LLMemType mt(LLMemType::MTYPE_AVATAR);
1809 1813
1814 //this can get called with null info on startup sometimes
1815 if (!info)
1816 return FALSE;
1817
1810 //------------------------------------------------------------------------- 1818 //-------------------------------------------------------------------------
1811 // allocate joints 1819 // allocate joints
1812 //------------------------------------------------------------------------- 1820 //-------------------------------------------------------------------------
@@ -2174,9 +2182,10 @@ void LLVOAvatar::buildCharacter()
2174 LLMenuItemCallGL* item = new LLMenuItemCallGL(attachment->getName(), 2182 LLMenuItemCallGL* item = new LLMenuItemCallGL(attachment->getName(),
2175 NULL, &object_selected_and_point_valid, 2183 NULL, &object_selected_and_point_valid,
2176 &attach_label, attachment); 2184 &attach_label, attachment);
2185if (item){
2177 item->addListener(gMenuHolder->getListenerByName("Object.AttachToAvatar"), "on_click", curiter->first); 2186 item->addListener(gMenuHolder->getListenerByName("Object.AttachToAvatar"), "on_click", curiter->first);
2178 gAttachSubMenu->append(item); 2187 gAttachSubMenu->append(item);
2179 2188}
2180 gDetachSubMenu->append(new LLMenuItemCallGL(attachment->getName(), 2189 gDetachSubMenu->append(new LLMenuItemCallGL(attachment->getName(),
2181 &handle_detach_from_avatar, object_attached, &detach_label, attachment)); 2190 &handle_detach_from_avatar, object_attached, &detach_label, attachment));
2182 2191