void TbsAnimObj::GetAnimKeys( INode* pNode, TMesh* pMesh) { BOOL bPosAnim; BOOL bRotAnim; BOOL bScaleAnim; m_iDeltaTick = m_Scene.iTickPerFrame; if(CheckForAnimation(pNode, bPosAnim, bRotAnim, bScaleAnim)) { if( bPosAnim ) { DumpPosSample( pNode, pMesh); } if( bRotAnim ) { DumpRotSample( pNode, pMesh ); } if( bScaleAnim ) { DumpScaleSample( pNode, pMesh ); } } // Export the visibility track Control* visCont = pNode->GetVisController(); if (visCont) { DumpFloatKeys(visCont, pMesh); } }
void bgAnimMax::GetAnimKeys(INode* pNode, bgMesh* pMesh) { BOOL bPosAnim; BOOL bRotAnim; BOOL bSclAnim; m_iDeltaTick = m_Scene.iTickPerFrame; if (CheckForAnimation(pNode, bPosAnim, bRotAnim, bSclAnim)) { if (bPosAnim) { pMesh->PosTrack.clear(); DumpPosSample(pNode, pMesh); } if (bRotAnim) { pMesh->RotTrack.clear(); DumpRotSample(pNode, pMesh); } if (bSclAnim) { pMesh->SclTrack.clear(); DumpSclSample(pNode, pMesh); } } Control* AlpCont = pNode->GetVisController(); if (AlpCont) { pMesh->AlpTrack.clear(); DumpFloatKeys(AlpCont, pMesh); } }