//-------------------------------------------------------------------------- KeyFrame* VertexAnimationTrack::createKeyFrameImpl(Real time) { switch(mAnimationType) { default: case VAT_MORPH: return OGRE_NEW VertexMorphKeyFrame(this, time); case VAT_POSE: return OGRE_NEW VertexPoseKeyFrame(this, time); }; }
//--------------------------------------------------------------------- KeyFrame* VertexMorphKeyFrame::_clone(AnimationTrack* newParent) const { VertexMorphKeyFrame* newKf = OGRE_NEW VertexMorphKeyFrame(newParent, mTime); newKf->mBuffer = mBuffer; return newKf; }