summaryrefslogtreecommitdiff
path: root/indra/llcharacter/lljoint.h
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-11-17 16:41:55 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-11-17 16:41:55 -0500
commit94d7d6a623d755424c2bd8c2526bff0d46101915 (patch)
tree32541d7d757c6647a939241412ef458a523d2d33 /indra/llcharacter/lljoint.h
parent3bfc2564a685f87dda38d423ca3c32f96efeedf1 (diff)
SL-271 WIP, SL-201 WIP - add support for end point to joints, use for debug rendering display to show bones.
Diffstat (limited to 'indra/llcharacter/lljoint.h')
-rwxr-xr-xindra/llcharacter/lljoint.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcharacter/lljoint.h b/indra/llcharacter/lljoint.h
index 8d380cdc82..f11cbacaaa 100755
--- a/indra/llcharacter/lljoint.h
+++ b/indra/llcharacter/lljoint.h
@@ -117,6 +117,10 @@ public:
// describes the skin binding pose
LLVector3 mSkinOffset;
+ // Endpoint of the bone, if applicable. This is only relevant for
+ // external programs like Blender, and for diagnostic display.
+ LLVector3 mEnd;
+
S32 mJointNum;
// child joints
@@ -156,6 +160,10 @@ public:
SupportCategory getSupport() const { return mSupport; }
void setSupport( const SupportCategory& support) { mSupport = support; }
void setSupport( const std::string& support_string);
+
+ // get/set end point
+ void setEnd( const LLVector3& end) { mEnd = end; }
+ const LLVector3& getEnd() const { return mEnd; }
// getParent
LLJoint *getParent() { return mParent; }