diff options
author | Jacek Antonelli | 2008-08-15 23:45:07 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:07 -0500 |
commit | 8465910c79b8e746e04fd581cca2d60399e569b9 (patch) | |
tree | f43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/llcharacter | |
parent | Second Life viewer sources 1.18.2.1 (diff) | |
download | meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2 meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz |
Second Life viewer sources 1.18.3.2-RC
Diffstat (limited to 'linden/indra/llcharacter')
-rw-r--r-- | linden/indra/llcharacter/llkeyframemotion.cpp | 22 | ||||
-rw-r--r-- | linden/indra/llcharacter/llkeyframemotion.h | 3 | ||||
-rw-r--r-- | linden/indra/llcharacter/llmultigesture.cpp | 2 |
3 files changed, 15 insertions, 12 deletions
diff --git a/linden/indra/llcharacter/llkeyframemotion.cpp b/linden/indra/llcharacter/llkeyframemotion.cpp index e5d610a..cf489aa 100644 --- a/linden/indra/llcharacter/llkeyframemotion.cpp +++ b/linden/indra/llcharacter/llkeyframemotion.cpp | |||
@@ -425,15 +425,17 @@ void LLKeyframeMotion::JointMotion::update(LLJointState* joint_state, F32 time, | |||
425 | // LLKeyframeMotion() | 425 | // LLKeyframeMotion() |
426 | // Class Constructor | 426 | // Class Constructor |
427 | //----------------------------------------------------------------------------- | 427 | //----------------------------------------------------------------------------- |
428 | LLKeyframeMotion::LLKeyframeMotion( const LLUUID &id) : LLMotion(id) | 428 | LLKeyframeMotion::LLKeyframeMotion(const LLUUID &id) |
429 | : LLMotion(id), | ||
430 | mJointMotionList(NULL), | ||
431 | mJointStates(NULL), | ||
432 | mPelvisp(NULL), | ||
433 | mLastSkeletonSerialNum(0), | ||
434 | mLastUpdateTime(0.f), | ||
435 | mLastLoopedTime(0.f), | ||
436 | mAssetStatus(ASSET_UNDEFINED) | ||
429 | { | 437 | { |
430 | mJointMotionList = NULL; | 438 | |
431 | mJointStates = NULL; | ||
432 | mLastSkeletonSerialNum = 0; | ||
433 | mLastLoopedTime = 0.f; | ||
434 | mLastUpdateTime = 0.f; | ||
435 | mAssetStatus = ASSET_UNDEFINED; | ||
436 | mPelvisp = NULL; | ||
437 | } | 439 | } |
438 | 440 | ||
439 | 441 | ||
@@ -1738,7 +1740,7 @@ BOOL LLKeyframeMotion::serialize(LLDataPacker& dp) const | |||
1738 | } | 1740 | } |
1739 | 1741 | ||
1740 | success &= dp.packS32(mJointMotionList->mConstraints.size(), "num_constraints"); | 1742 | success &= dp.packS32(mJointMotionList->mConstraints.size(), "num_constraints"); |
1741 | for (JointMotionList::constraint_list_t::iterator iter = mJointMotionList->mConstraints.begin(); | 1743 | for (JointMotionList::constraint_list_t::const_iterator iter = mJointMotionList->mConstraints.begin(); |
1742 | iter != mJointMotionList->mConstraints.end(); ++iter) | 1744 | iter != mJointMotionList->mConstraints.end(); ++iter) |
1743 | { | 1745 | { |
1744 | JointConstraintSharedData* shared_constraintp = *iter; | 1746 | JointConstraintSharedData* shared_constraintp = *iter; |
@@ -1933,7 +1935,7 @@ void LLKeyframeMotion::setLoopOut(F32 out_point) | |||
1933 | void LLKeyframeMotion::onLoadComplete(LLVFS *vfs, | 1935 | void LLKeyframeMotion::onLoadComplete(LLVFS *vfs, |
1934 | const LLUUID& asset_uuid, | 1936 | const LLUUID& asset_uuid, |
1935 | LLAssetType::EType type, | 1937 | LLAssetType::EType type, |
1936 | void* user_data, S32 status) | 1938 | void* user_data, S32 status, LLExtStat ext_status) |
1937 | { | 1939 | { |
1938 | LLUUID* id = (LLUUID*)user_data; | 1940 | LLUUID* id = (LLUUID*)user_data; |
1939 | 1941 | ||
diff --git a/linden/indra/llcharacter/llkeyframemotion.h b/linden/indra/llcharacter/llkeyframemotion.h index 1e5cd62..9e1b11d 100644 --- a/linden/indra/llcharacter/llkeyframemotion.h +++ b/linden/indra/llcharacter/llkeyframemotion.h | |||
@@ -144,7 +144,7 @@ public: | |||
144 | static void onLoadComplete(LLVFS *vfs, | 144 | static void onLoadComplete(LLVFS *vfs, |
145 | const LLUUID& asset_uuid, | 145 | const LLUUID& asset_uuid, |
146 | LLAssetType::EType type, | 146 | LLAssetType::EType type, |
147 | void* user_data, S32 status); | 147 | void* user_data, S32 status, LLExtStat ext_status); |
148 | 148 | ||
149 | public: | 149 | public: |
150 | U32 getFileSize(); | 150 | U32 getFileSize(); |
@@ -456,3 +456,4 @@ public: | |||
456 | 456 | ||
457 | #endif // LL_LLKEYFRAMEMOTION_H | 457 | #endif // LL_LLKEYFRAMEMOTION_H |
458 | 458 | ||
459 | |||
diff --git a/linden/indra/llcharacter/llmultigesture.cpp b/linden/indra/llcharacter/llmultigesture.cpp index 0a4d99a..e92fcbd 100644 --- a/linden/indra/llcharacter/llmultigesture.cpp +++ b/linden/indra/llcharacter/llmultigesture.cpp | |||
@@ -278,7 +278,7 @@ BOOL LLGestureStepAnimation::deserialize(LLDataPacker& dp) | |||
278 | 278 | ||
279 | // Apparently an earlier version of the gesture code added \r to the end | 279 | // Apparently an earlier version of the gesture code added \r to the end |
280 | // of the animation names. Get rid of it. JC | 280 | // of the animation names. Get rid of it. JC |
281 | if (mAnimName[mAnimName.length() - 1] == '\r') | 281 | if (!mAnimName.empty() && mAnimName[mAnimName.length() - 1] == '\r') |
282 | { | 282 | { |
283 | // chop the last character | 283 | // chop the last character |
284 | mAnimName.resize(mAnimName.length() - 1); | 284 | mAnimName.resize(mAnimName.length() - 1); |