summaryrefslogtreecommitdiff
path: root/indra/newview/gltf/asset.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-11 17:38:48 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-11 17:38:48 +0300
commit3d4bc98f6be51ebb8ac43af395e54bb6b608c9ae (patch)
tree9d2cb295c019e867b9dcdae451ce7acc7e3bb77e /indra/newview/gltf/asset.cpp
parent1ebf62e102cb3f328aa90809f7f5060b8f065db1 (diff)
Trim remaining trailing whitespaces after #1695
Diffstat (limited to 'indra/newview/gltf/asset.cpp')
-rw-r--r--indra/newview/gltf/asset.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/gltf/asset.cpp b/indra/newview/gltf/asset.cpp
index fbc3648fd2..973a460b73 100644
--- a/indra/newview/gltf/asset.cpp
+++ b/indra/newview/gltf/asset.cpp
@@ -71,7 +71,7 @@ void Node::updateTransforms(Asset& asset, const LLMatrix4a& parentMatrix)
makeMatrixValid();
matMul(mMatrix, parentMatrix, mAssetMatrix);
mAssetMatrixInv = inverse(mAssetMatrix);
-
+
S32 my_index = this - &asset.mNodes[0];
for (auto& childIndex : mChildren)
@@ -133,7 +133,7 @@ S32 Asset::lineSegmentIntersect(const LLVector4a& start, const LLVector4a& end,
{
if (node.mMesh != INVALID_INDEX)
{
-
+
bool newHit = false;
// transform start and end to this node's local space
@@ -162,7 +162,7 @@ S32 Asset::lineSegmentIntersect(const LLVector4a& start, const LLVector4a& end,
if (newHit)
{
// shorten line segment on hit
- node.mAssetMatrix.affineTransform(p, asset_end);
+ node.mAssetMatrix.affineTransform(p, asset_end);
// transform results back to asset space
if (intersection)
@@ -229,7 +229,7 @@ void Node::makeMatrixValid()
sc.set_scale(mScale);
glh::matrix4f t;
- //t = sc * rot * trans;
+ //t = sc * rot * trans;
//t = trans * rot * sc; // best so far, still wrong on negative scale
//t = sc * trans * rot;
t = trans * sc * rot;
@@ -538,7 +538,7 @@ const Asset& Asset::operator=(const tinygltf::Model& src)
{
mSkins[i] = src.skins[i];
}
-
+
return *this;
}
@@ -616,7 +616,7 @@ void Skin::uploadMatrixPalette(Asset& asset, Node& node)
for (U32 i = 0; i < mJoints.size(); ++i)
{
Node& joint = asset.mNodes[mJoints[i]];
-
+
//t_mp[i].set_value(joint.mRenderMatrix.getF32ptr());
//t_mp[i] = t_mp[i] * mInverseBindMatricesData[i];