Commit ff46a906 authored by Mike Kremer's avatar Mike Kremer
Browse files

Added function to replace an animation's name.

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent de67eb25
......@@ -168,7 +168,6 @@ public:
Iterator end();
/** \anchor AnimationAccess
* @name Animation
* Use these methods to equip the skeleton with animation data.
......@@ -187,6 +186,15 @@ public:
void removeAnimation(const AnimationHandle &_hAni);
void clearAnimations();
void replaceAnimationName(const std::string _strOld, const std::string _strNew) {
std::map<std::string,unsigned int>::iterator f = names_.find(_strOld);
if(f != names_.end()) {
unsigned int c = f->second;
names_[_strNew] = c;
/// Iterator over the animations
AnimationIterator animationsBegin();
AnimationIterator animationsEnd();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment