Merge branch 'master' into sunshine
Conflicts: indra/llimage/llimage.cpp indra/llui/llui.cpp indra/newview/llvoavatar.cpp
This commit is contained in:
@@ -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);
|
||||
@@ -1637,7 +1633,7 @@ LLVector3d LLAgentCamera::calcFocusPositionTargetGlobal()
|
||||
{
|
||||
gPipeline.updateMoveNormalAsync(drawablep);
|
||||
}
|
||||
else
|
||||
else if(!drawablep->isState(LLDrawable::ON_MOVE_LIST))
|
||||
{
|
||||
if (drawablep->isState(LLDrawable::MOVE_UNDAMPED))
|
||||
{
|
||||
@@ -2312,12 +2308,7 @@ void LLAgentCamera::changeCameraToThirdPerson(BOOL animate)
|
||||
}
|
||||
updateLastCamera();
|
||||
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
|
||||
@@ -2523,9 +2514,10 @@ void LLAgentCamera::setFocusObject(LLViewerObject* object)
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLAgentCamera::setFocusGlobal(const LLPickInfo& pick)
|
||||
{
|
||||
static const LLCachedControl<bool> freeze_time("FreezeTime",false);
|
||||
LLViewerObject* objectp = gObjectList.findObject(pick.mObjectID);
|
||||
|
||||
if (objectp)
|
||||
if (objectp && !freeze_time)
|
||||
{
|
||||
// focus on object plus designated offset
|
||||
// which may or may not be same as pick.mPosGlobal
|
||||
|
||||
Reference in New Issue
Block a user