131 Ogre::AnimationTrack* newAnimTrack = 0;
138 Ogre::NodeAnimationTrack* nodeTrack =
static_cast<Ogre::NodeAnimationTrack*
>(
ogreAnimationTrack);
139 newAnimTrack = tanim->createNodeTrack(tid, nodeTrack->getAssociatedNode());
140 for (
int i = 0; i < nodeTrack->getNumKeyFrames(); i++)
142 Ogre::TransformKeyFrame* key = nodeTrack->getNodeKeyFrame(i);
143 Ogre::TransformKeyFrame* nkey =
static_cast<Ogre::NodeAnimationTrack*
>(newAnimTrack)->createNodeKeyFrame(key->getTime());
144 nkey->setRotation(key->getRotation());
145 nkey->setScale(key->getScale());
146 nkey->setTranslate(key->getTranslate());
171 Ogre::VertexAnimationTrack* vertexTrack =
static_cast<Ogre::VertexAnimationTrack*
>(
ogreAnimationTrack);
172 newAnimTrack = tanim->createVertexTrack(tid, vertexTrack->getAssociatedVertexData(), vertexTrack->getAnimationType());
173 for (
int i = 0; i < vertexTrack->getNumKeyFrames(); i++)
175 Ogre::VertexMorphKeyFrame* key = vertexTrack->getVertexMorphKeyFrame(i);
176 Ogre::VertexMorphKeyFrame* nkey =
static_cast<Ogre::VertexAnimationTrack*
>(newAnimTrack)->createVertexMorphKeyFrame(key->getTime());
177 nkey->setVertexBuffer(key->getVertexBuffer());
186 catch (Ogre::Exception)