Tiny cleanup

This commit is contained in:
Siana Gearz
2013-01-02 22:56:04 +01:00
parent 66083d6531
commit e732e62b39
2 changed files with 11 additions and 23 deletions

View File

@@ -410,11 +410,7 @@ LLVector3 LLAgentCamera::calcFocusOffset(LLViewerObject *object, LLVector3 origi
}
LLQuaternion inv_obj_rot = ~obj_rot; // get inverse of rotation
LLVector3 object_extents = object->getScale();
//this stuff just seems to make camera snapping worse...
//const LLVector4a* oe4 = object->mDrawable->getSpatialExtents();
//object_extents.set( oe4[1][0], oe4[1][1], oe4[1][2] );
LLVector3 object_extents = object->getScale();
// make sure they object extents are non-zero
object_extents.clamp(0.001f, F32_MAX);
@@ -2314,10 +2310,6 @@ void LLAgentCamera::changeCameraToThirdPerson(BOOL animate)
mCameraMode = CAMERA_MODE_THIRD_PERSON;
U32 old_flags = gAgent.getControlFlags();
gAgent.clearControlFlags(AGENT_CONTROL_MOUSELOOK);
if (old_flags != gAgent.getControlFlags())
{
gAgent.setFlagsDirty();
}
}
// Remove any pitch from the avatar