aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcharacter/llkeyframemotion.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcharacter/llkeyframemotion.h')
-rw-r--r--linden/indra/llcharacter/llkeyframemotion.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/linden/indra/llcharacter/llkeyframemotion.h b/linden/indra/llcharacter/llkeyframemotion.h
index ef3f6dd..0ad0181 100644
--- a/linden/indra/llcharacter/llkeyframemotion.h
+++ b/linden/indra/llcharacter/llkeyframemotion.h
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -73,6 +73,11 @@ public:
73 // Destructor 73 // Destructor
74 virtual ~LLKeyframeMotion(); 74 virtual ~LLKeyframeMotion();
75 75
76private:
77 // private helper functions to wrap some asserts
78 LLPointer<LLJointState>& getJointState(U32 index);
79 LLJoint* getJoint(U32 index);
80
76public: 81public:
77 //------------------------------------------------------------------------- 82 //-------------------------------------------------------------------------
78 // functions to support MotionController and MotionRegistry 83 // functions to support MotionController and MotionRegistry
@@ -388,7 +393,7 @@ public:
388 U32 mUsage; 393 U32 mUsage;
389 LLJoint::JointPriority mPriority; 394 LLJoint::JointPriority mPriority;
390 395
391 void update(LLJointState *joint_state, F32 time, F32 duration); 396 void update(LLJointState* joint_state, F32 time, F32 duration);
392 }; 397 };
393 398
394 //------------------------------------------------------------------------- 399 //-------------------------------------------------------------------------
@@ -397,8 +402,7 @@ public:
397 class JointMotionList 402 class JointMotionList
398 { 403 {
399 public: 404 public:
400 U32 mNumJointMotions; 405 std::vector<JointMotion*> mJointMotionArray;
401 JointMotion* mJointMotionArray;
402 F32 mDuration; 406 F32 mDuration;
403 BOOL mLoop; 407 BOOL mLoop;
404 F32 mLoopInPoint; 408 F32 mLoopInPoint;
@@ -415,6 +419,8 @@ public:
415 JointMotionList(); 419 JointMotionList();
416 ~JointMotionList(); 420 ~JointMotionList();
417 U32 dumpDiagInfo(); 421 U32 dumpDiagInfo();
422 JointMotion* getJointMotion(U32 index) const { llassert(index < mJointMotionArray.size()); return mJointMotionArray[index]; }
423 U32 getNumJointMotions() const { return mJointMotionArray.size(); }
418 }; 424 };
419 425
420 426
@@ -425,7 +431,7 @@ protected:
425 // Member Data 431 // Member Data
426 //------------------------------------------------------------------------- 432 //-------------------------------------------------------------------------
427 JointMotionList* mJointMotionList; 433 JointMotionList* mJointMotionList;
428 LLJointState* mJointStates; 434 std::vector<LLPointer<LLJointState> > mJointStates;
429 LLJoint* mPelvisp; 435 LLJoint* mPelvisp;
430 LLCharacter* mCharacter; 436 LLCharacter* mCharacter;
431 std::string mEmoteName; 437 std::string mEmoteName;