A majority of vectorization done. Note that it's INCOMPLETE. LLVolumeFace and LLVertexBuffer haven't been updated, so it's very dirty(and buggy) at those transitions. Compiles on windoze.
This commit is contained in:
@@ -411,8 +411,9 @@ 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 LLVector3* oe3 = object->mDrawable->getSpatialExtents();
|
||||
//object_extents.set( oe3[1][0], oe3[1][1], oe3[1][2] );
|
||||
//const LLVector4a* oe4 = object->mDrawable->getSpatialExtents();
|
||||
//object_extents.set( oe4[1][0], oe4[1][1], oe4[1][2] );
|
||||
|
||||
|
||||
// make sure they object extents are non-zero
|
||||
object_extents.clamp(0.001f, F32_MAX);
|
||||
|
||||
Reference in New Issue
Block a user