diff options
author | RunitaiLinden <davep@lindenlab.com> | 2024-04-30 17:26:48 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2024-04-30 17:26:48 -0500 |
commit | 5e2bac01cb6e8d3de3cc0e496d94a729e4740247 (patch) | |
tree | f7e89dbe873397078ba5a2232f1ef24a0f17f909 /indra/newview/llviewerobject.cpp | |
parent | 66ccc1ed836948aa5d26b1ce0fcc1ae799e792a7 (diff) |
#1357 GLTF Export Prototype
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index b66d4b1dab..5b21040a04 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -4379,7 +4379,7 @@ LLMatrix4a LLViewerObject::getGLTFAssetToAgentTransform() const LLMatrix4 root; root.initScale(getScale()); root.rotate(getRenderRotation()); - root.translate(getPositionAgent()); + root.translate(getRenderPosition()); LLMatrix4a mat; mat.loadu((F32*)root.mMatrix); @@ -4403,7 +4403,7 @@ LLMatrix4a LLViewerObject::getAgentToGLTFAssetTransform() const scale.mV[1] = 1.f / scale.mV[1]; scale.mV[2] = 1.f / scale.mV[2]; - root.translate(-getPositionAgent()); + root.translate(-getRenderPosition()); root.rotate(~getRenderRotation()); LLMatrix4 scale_mat; |