Search code examples
c++assimp

aiNodeAnim in Assimp


I'm converting the data that I loaded using Assimp into my own, and the question arose.

I have code like this:

const aiAnimation* pAnimation = ai_scene->mAnimations[0];
const aiNodeAnim* pNodeAnim = findNodeAnim(pAnimation, nodeName);

pNodeAnim - pointer. Can the same pointer be contained in ai_scene->mAnimations[1]? And in general, does it happens in Assimp (with any other assimp types/classes/structures)?


Solution

  • It's impossible. Kim Kulling's original answer:

    Animations shall be unique. So when you are getting an animation we must guarantee that this one is unique.