diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llcharacter/llkeyframemotionparam.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llcharacter/llkeyframemotionparam.cpp')
-rw-r--r-- | linden/indra/llcharacter/llkeyframemotionparam.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linden/indra/llcharacter/llkeyframemotionparam.cpp b/linden/indra/llcharacter/llkeyframemotionparam.cpp index 0e7388c..c22ef26 100644 --- a/linden/indra/llcharacter/llkeyframemotionparam.cpp +++ b/linden/indra/llcharacter/llkeyframemotionparam.cpp | |||
@@ -346,10 +346,8 @@ BOOL LLKeyframeMotionParam::loadMotions() | |||
346 | // Load named file by concatenating the character prefix with the motion name. | 346 | // Load named file by concatenating the character prefix with the motion name. |
347 | // Load data into a buffer to be parsed. | 347 | // Load data into a buffer to be parsed. |
348 | //------------------------------------------------------------------------- | 348 | //------------------------------------------------------------------------- |
349 | char path[LL_MAX_PATH]; /* Flawfinder: ignore */ | 349 | std::string path = gDirUtilp->getExpandedFilename(LL_PATH_MOTIONS,mCharacter->getAnimationPrefix()) |
350 | snprintf( path,sizeof(path), "%s_%s.llp", | 350 | + "_" + getName() + ".llp"; |
351 | gDirUtilp->getExpandedFilename(LL_PATH_MOTIONS,mCharacter->getAnimationPrefix()).c_str(), | ||
352 | getName().c_str() ); | ||
353 | 351 | ||
354 | //------------------------------------------------------------------------- | 352 | //------------------------------------------------------------------------- |
355 | // open the file | 353 | // open the file |
@@ -436,7 +434,7 @@ BOOL LLKeyframeMotionParam::loadMotions() | |||
436 | return FALSE; | 434 | return FALSE; |
437 | } | 435 | } |
438 | 436 | ||
439 | addKeyframeMotion(strA, gAnimLibrary.stringToAnimState(strA), strB, floatA); | 437 | addKeyframeMotion(strA, gAnimLibrary.stringToAnimState(std::string(strA)), strB, floatA); |
440 | if (isFirstMotion) | 438 | if (isFirstMotion) |
441 | { | 439 | { |
442 | isFirstMotion = FALSE; | 440 | isFirstMotion = FALSE; |