aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llagent.cpp6
-rw-r--r--linden/indra/newview/lldrawable.cpp1
-rw-r--r--linden/indra/newview/llfolderview.cpp6
-rw-r--r--linden/indra/newview/llviewermenu.cpp16
-rw-r--r--linden/indra/newview/llviewerobjectlist.cpp37
5 files changed, 20 insertions, 46 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp
index c61f7a6..54b71eb 100644
--- a/linden/indra/newview/llagent.cpp
+++ b/linden/indra/newview/llagent.cpp
@@ -3729,9 +3729,8 @@ LLVector3d LLAgent::calcCameraPositionTargetGlobal(BOOL *hit_limit)
3729 // Compute base camera position and look-at points. 3729 // Compute base camera position and look-at points.
3730 F32 camera_land_height; 3730 F32 camera_land_height;
3731 LLVector3d frame_center_global = mAvatarObject.isNull() ? getPositionGlobal() 3731 LLVector3d frame_center_global = mAvatarObject.isNull() ? getPositionGlobal()
3732 : getPosGlobalFromAgent(mAvatarObject->mRoot.getWorldPosition()); 3732 : getPosGlobalFromAgent(mAvatarObject->mRoot.getWorldPosition());
3733 3733
3734 LLVector3 upAxis = getUpAxis();
3735 BOOL isConstrained = FALSE; 3734 BOOL isConstrained = FALSE;
3736 LLVector3d head_offset; 3735 LLVector3d head_offset;
3737 head_offset.setVec(mThirdPersonHeadOffset); 3736 head_offset.setVec(mThirdPersonHeadOffset);
@@ -3866,7 +3865,6 @@ LLVector3d LLAgent::calcCameraPositionTargetGlobal(BOOL *hit_limit)
3866 // set the global camera position 3865 // set the global camera position
3867 LLVector3d camera_offset; 3866 LLVector3d camera_offset;
3868 3867
3869 LLVector3 av_pos = mAvatarObject.isNull() ? LLVector3::zero : mAvatarObject->getRenderPosition();
3870 camera_offset.setVec( local_camera_offset ); 3868 camera_offset.setVec( local_camera_offset );
3871 camera_position_global = frame_center_global + head_offset + camera_offset; 3869 camera_position_global = frame_center_global + head_offset + camera_offset;
3872 3870
diff --git a/linden/indra/newview/lldrawable.cpp b/linden/indra/newview/lldrawable.cpp
index f808f89..ee49752 100644
--- a/linden/indra/newview/lldrawable.cpp
+++ b/linden/indra/newview/lldrawable.cpp
@@ -1096,7 +1096,6 @@ LLCamera LLSpatialBridge::transformCamera(LLCamera& camera)
1096 LLCamera ret = camera; 1096 LLCamera ret = camera;
1097 LLXformMatrix* mat = mDrawable->getXform(); 1097 LLXformMatrix* mat = mDrawable->getXform();
1098 LLVector3 center = LLVector3(0,0,0) * mat->getWorldMatrix(); 1098 LLVector3 center = LLVector3(0,0,0) * mat->getWorldMatrix();
1099 LLQuaternion rotation = LLQuaternion(mat->getWorldMatrix());
1100 1099
1101 LLVector3 delta = ret.getOrigin() - center; 1100 LLVector3 delta = ret.getOrigin() - center;
1102 LLQuaternion rot = ~mat->getRotation(); 1101 LLQuaternion rot = ~mat->getRotation();
diff --git a/linden/indra/newview/llfolderview.cpp b/linden/indra/newview/llfolderview.cpp
index ce2b2b4..489a5d5 100644
--- a/linden/indra/newview/llfolderview.cpp
+++ b/linden/indra/newview/llfolderview.cpp
@@ -3767,12 +3767,6 @@ BOOL LLFolderView::handleKeyHere( KEY key, MASK mask )
3767 LLMenuGL::sMenuContainer->hideMenus(); 3767 LLMenuGL::sMenuContainer->hideMenus();
3768 } 3768 }
3769 3769
3770 LLView *item = NULL;
3771 if (getChildCount() > 0)
3772 {
3773 item = *(getChildList()->begin());
3774 }
3775
3776 switch( key ) 3770 switch( key )
3777 { 3771 {
3778 case KEY_F2: 3772 case KEY_F2:
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index f10910c..7fd58db 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -5223,11 +5223,6 @@ class LLViewToggleRadar: public view_listener_t
5223 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 5223 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
5224 { 5224 {
5225 LLFloaterAvatarList::toggle(0); 5225 LLFloaterAvatarList::toggle(0);
5226 bool vis = false;
5227 if(LLFloaterAvatarList::getInstance())
5228 {
5229 vis = (bool)LLFloaterAvatarList::getInstance()->getVisible();
5230 }
5231 return true; 5226 return true;
5232 } 5227 }
5233}; 5228};
@@ -5237,11 +5232,6 @@ class LLViewToggleMOAPRadar: public view_listener_t
5237 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 5232 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
5238 { 5233 {
5239 LLFloaterMOAPRadar::toggle(0); 5234 LLFloaterMOAPRadar::toggle(0);
5240 bool vis = false;
5241 if(LLFloaterMOAPRadar::getInstance())
5242 {
5243 vis = (bool)LLFloaterMOAPRadar::getInstance()->getVisible();
5244 }
5245 return true; 5235 return true;
5246 } 5236 }
5247}; 5237};
@@ -8976,12 +8966,6 @@ class LLAdvancedToggleAssetBrowser: public view_listener_t
8976 { 8966 {
8977 //open the floater 8967 //open the floater
8978 LLFloaterAssetBrowser::show(0); 8968 LLFloaterAssetBrowser::show(0);
8979
8980 bool vis = false;
8981 if(LLFloaterAssetBrowser::getInstance())
8982 {
8983 vis = (bool)LLFloaterAssetBrowser::getInstance()->getVisible();
8984 }
8985 return true; 8969 return true;
8986 } 8970 }
8987}; 8971};
diff --git a/linden/indra/newview/llviewerobjectlist.cpp b/linden/indra/newview/llviewerobjectlist.cpp
index d0aa4b1..c82b1ae 100644
--- a/linden/indra/newview/llviewerobjectlist.cpp
+++ b/linden/indra/newview/llviewerobjectlist.cpp
@@ -288,7 +288,6 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
288{ 288{
289 LLFastTimer t(LLFastTimer::FTM_PROCESS_OBJECTS); 289 LLFastTimer t(LLFastTimer::FTM_PROCESS_OBJECTS);
290 290
291 LLVector3d camera_global = gAgent.getCameraPositionGlobal();
292 LLViewerObject *objectp; 291 LLViewerObject *objectp;
293 S32 num_objects; 292 S32 num_objects;
294 U32 local_id; 293 U32 local_id;
@@ -305,28 +304,28 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
305 if (!cached && !compressed && update_type != OUT_FULL) 304 if (!cached && !compressed && update_type != OUT_FULL)
306 { 305 {
307 gTerseObjectUpdates += num_objects; 306 gTerseObjectUpdates += num_objects;
308 S32 size; 307// S32 size;
309 if (mesgsys->getReceiveCompressedSize()) 308// if (mesgsys->getReceiveCompressedSize())
310 { 309// {
311 size = mesgsys->getReceiveCompressedSize(); 310// size = mesgsys->getReceiveCompressedSize();
312 } 311// }
313 else 312// else
314 { 313// {
315 size = mesgsys->getReceiveSize(); 314// size = mesgsys->getReceiveSize();
316 } 315// }
317// llinfos << "Received terse " << num_objects << " in " << size << " byte (" << size/num_objects << ")" << llendl; 316// llinfos << "Received terse " << num_objects << " in " << size << " byte (" << size/num_objects << ")" << llendl;
318 } 317 }
319 else 318 else
320 { 319 {
321 S32 size; 320// S32 size;
322 if (mesgsys->getReceiveCompressedSize()) 321// if (mesgsys->getReceiveCompressedSize())
323 { 322// {
324 size = mesgsys->getReceiveCompressedSize(); 323// size = mesgsys->getReceiveCompressedSize();
325 } 324// }
326 else 325// else
327 { 326// {
328 size = mesgsys->getReceiveSize(); 327// size = mesgsys->getReceiveSize();
329 } 328// }
330 329
331// llinfos << "Received " << num_objects << " in " << size << " byte (" << size/num_objects << ")" << llendl; 330// llinfos << "Received " << num_objects << " in " << size << " byte (" << size/num_objects << ")" << llendl;
332 gFullObjectUpdates += num_objects; 331 gFullObjectUpdates += num_objects;