aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmorphview.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llmorphview.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/linden/indra/newview/llmorphview.cpp b/linden/indra/newview/llmorphview.cpp
index 404534b..6a592e6 100644
--- a/linden/indra/newview/llmorphview.cpp
+++ b/linden/indra/newview/llmorphview.cpp
@@ -80,16 +80,6 @@ LLMorphView::LLMorphView(const std::string& name, const LLRect& rect)
80{ 80{
81} 81}
82 82
83EWidgetType LLMorphView::getWidgetType() const
84{
85 return WIDGET_TYPE_MORPH_VIEW;
86}
87
88LLString LLMorphView::getWidgetTag() const
89{
90 return LL_MORPH_VIEW_TAG;
91}
92
93//----------------------------------------------------------------------------- 83//-----------------------------------------------------------------------------
94// initialize() 84// initialize()
95//----------------------------------------------------------------------------- 85//-----------------------------------------------------------------------------
@@ -110,8 +100,8 @@ void LLMorphView::initialize()
110 avatarp->mSpecialRenderMode = 3; 100 avatarp->mSpecialRenderMode = 3;
111 101
112 // set up camera for close look at avatar 102 // set up camera for close look at avatar
113 mOldCameraNearClip = gCamera->getNear(); 103 mOldCameraNearClip = LLViewerCamera::getInstance()->getNear();
114 gCamera->setNear(MORPH_NEAR_CLIP); 104 LLViewerCamera::getInstance()->setNear(MORPH_NEAR_CLIP);
115} 105}
116 106
117//----------------------------------------------------------------------------- 107//-----------------------------------------------------------------------------
@@ -127,7 +117,7 @@ void LLMorphView::shutdown()
127 avatarp->startMotion( ANIM_AGENT_BODY_NOISE ); 117 avatarp->startMotion( ANIM_AGENT_BODY_NOISE );
128 avatarp->mSpecialRenderMode = 0; 118 avatarp->mSpecialRenderMode = 0;
129 // reset camera 119 // reset camera
130 gCamera->setNear(mOldCameraNearClip); 120 LLViewerCamera::getInstance()->setNear(mOldCameraNearClip);
131 } 121 }
132} 122}
133 123