summaryrefslogtreecommitdiff
path: root/indra/llcharacter/lljoint.cpp
diff options
context:
space:
mode:
authorprep linden <prep@lindenlab.com>2010-09-24 13:11:53 -0400
committerprep linden <prep@lindenlab.com>2010-09-24 13:11:53 -0400
commitc7f5a9419b4b93efdc04ebfbb8e05a2ef0e09142 (patch)
treed4bd4000daf955114e9dc1ed96a873b620115299 /indra/llcharacter/lljoint.cpp
parente0588af08737177f8a1bc519376073e14b886434 (diff)
Added support for joint offsets
Diffstat (limited to 'indra/llcharacter/lljoint.cpp')
-rwxr-xr-xindra/llcharacter/lljoint.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/llcharacter/lljoint.cpp b/indra/llcharacter/lljoint.cpp
index 5c49214051..2449b01e15 100755
--- a/indra/llcharacter/lljoint.cpp
+++ b/indra/llcharacter/lljoint.cpp
@@ -239,6 +239,21 @@ void LLJoint::setPosition( const LLVector3& pos )
}
}
+//--------------------------------------------------------------------
+// storeCurrentXform()
+//--------------------------------------------------------------------
+void LLJoint::storeCurrentXform( const LLVector3& pos )
+{
+ mOldXform = mXform;
+ setPosition( pos );
+}
+//--------------------------------------------------------------------
+// restoreOldXform()
+//--------------------------------------------------------------------
+void LLJoint::restoreOldXform( void )
+{
+ mXform = mOldXform;
+}
//--------------------------------------------------------------------
// getWorldPosition()