How to convert ID3DXAnimationSet to ID3DXKeyframedAnimationSet ?
If I use QueryInterface than program crashes on calling UnregisterAnimation() with animation index higher than 0
if (SUCCEEDED (pAnimController->GetAnimationSetByName (szAnimSetName, &pAnimSet))){ if (SUCCEEDED(pAnimSet->QueryInterface (IID_ID3DXKeyframedAnimationSet, (LPVOID*)&pKeyFramedAnimSet))) { UINT dwNumAnimations = pKeyFramedAnimSet->GetNumAnimations (); for (UINT i=0; i<dwNumAnimations; i++) HRESULT hr = pKeyFramedAnimSet->UnregisterAnimation (i); } pAnimSet->Release ();}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement