diff options
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 7ef757f1ba..569de267e7 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -358,7 +358,6 @@ LLAgent::LLAgent() : mFrameAgent(), - mCrouching(FALSE), mIsBusy(FALSE), mAtKey(0), // Either 1, 0, or -1... indicates that movement-key is pressed @@ -477,8 +476,16 @@ void LLAgent::cleanup() { setSitCamera(LLUUID::null); mAvatarObject = NULL; - mLookAt = NULL; - mPointAt = NULL; + if(mLookAt) + { + mLookAt->markDead() ; + mLookAt = NULL; + } + if(mPointAt) + { + mPointAt->markDead() ; + mPointAt = NULL; + } mRegionp = NULL; setFocusObject(NULL); } @@ -2726,7 +2733,7 @@ BOOL LLAgent::needsRenderAvatar() // TRUE if we need to render your own avatar's head. BOOL LLAgent::needsRenderHead() { - return mShowAvatar && !cameraMouselook(); + return (LLVOAvatar::sVisibleInFirstPerson && LLPipeline::sReflectionRender) || (mShowAvatar && !cameraMouselook()); } //----------------------------------------------------------------------------- |