diff options
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r-- | linden/indra/newview/llagent.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index 8c455a5..ebdbc53 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -450,6 +450,7 @@ void LLAgent::init() | |||
450 | mEffectColor = gSavedSettings.getColor4("EffectColor"); | 450 | mEffectColor = gSavedSettings.getColor4("EffectColor"); |
451 | 451 | ||
452 | mInitialized = TRUE; | 452 | mInitialized = TRUE; |
453 | LL_DEBUGS("VOAvatar")<< "ctor of LLAgent" << LL_ENDL; | ||
453 | } | 454 | } |
454 | 455 | ||
455 | //----------------------------------------------------------------------------- | 456 | //----------------------------------------------------------------------------- |
@@ -462,6 +463,9 @@ void LLAgent::cleanup() | |||
462 | mShowAvatar = TRUE; | 463 | mShowAvatar = TRUE; |
463 | 464 | ||
464 | setSitCamera(LLUUID::null); | 465 | setSitCamera(LLUUID::null); |
466 | |||
467 | mAvatarObject->markDead(); | ||
468 | |||
465 | mAvatarObject = NULL; | 469 | mAvatarObject = NULL; |
466 | if(mLookAt) | 470 | if(mLookAt) |
467 | { | 471 | { |
@@ -475,6 +479,7 @@ void LLAgent::cleanup() | |||
475 | } | 479 | } |
476 | mRegionp = NULL; | 480 | mRegionp = NULL; |
477 | setFocusObject(NULL); | 481 | setFocusObject(NULL); |
482 | LL_DEBUGS("VOAvatar")<< "LLAgent cleanup()" << LL_ENDL; | ||
478 | } | 483 | } |
479 | 484 | ||
480 | //----------------------------------------------------------------------------- | 485 | //----------------------------------------------------------------------------- |
@@ -482,11 +487,13 @@ void LLAgent::cleanup() | |||
482 | //----------------------------------------------------------------------------- | 487 | //----------------------------------------------------------------------------- |
483 | LLAgent::~LLAgent() | 488 | LLAgent::~LLAgent() |
484 | { | 489 | { |
490 | LL_DEBUGS("VOAvatar")<< "LLAgent dtor begin" << LL_ENDL; | ||
485 | cleanup(); | 491 | cleanup(); |
486 | 492 | ||
487 | delete [] mActiveCacheQueries; | 493 | delete [] mActiveCacheQueries; |
488 | mActiveCacheQueries = NULL; | 494 | mActiveCacheQueries = NULL; |
489 | 495 | ||
496 | LL_DEBUGS("VOAvatar")<< "LLAgent dtor end" << LL_ENDL; | ||
490 | // *Note: this is where LLViewerCamera::getInstance() used to be deleted. | 497 | // *Note: this is where LLViewerCamera::getInstance() used to be deleted. |
491 | } | 498 | } |
492 | 499 | ||
@@ -7920,6 +7927,8 @@ void LLAgent::userRemoveAllClothesStep2( BOOL proceed, void* userdata ) | |||
7920 | 7927 | ||
7921 | void LLAgent::userRemoveAllAttachments( void* userdata ) | 7928 | void LLAgent::userRemoveAllAttachments( void* userdata ) |
7922 | { | 7929 | { |
7930 | LL_DEBUGS("VOAvatar")<< "userRemoveAllAttachments" << LL_ENDL; | ||
7931 | |||
7923 | LLVOAvatar* avatarp = gAgent.getAvatarObject(); | 7932 | LLVOAvatar* avatarp = gAgent.getAvatarObject(); |
7924 | if(!avatarp) | 7933 | if(!avatarp) |
7925 | { | 7934 | { |