Help with animated models
#4
This error is thrown from the SelectAnimation method:
Code:
        public void SelectAnimation(string animationName)
        {
            if (animationName == null)
                throw new ArgumentNullException(nameof(animationName));

            var assimpAnimation = _assimpScene.Animations.FirstOrDefault(a => a.Name == animationName);

            if (assimpAnimation == null)
                throw new Exception("Cannot find animation with name " + animationName);

            SelectAnimation(assimpAnimation);
        }

As seen from the code, this error would be thrown when the SelectAnimation was called with the animationName parameter set to "Assimp.Animation" and when there was no animation in the _assimpScene.Animations with that name.

Please put a breakpoint into SelectAnimation and check where the value of animationName came from.
Andrej Benedik
  


Messages In This Thread
Help with animated models - by GraPhiX - 01-20-2022, 07:23 PM
RE: Help with animated models - by GraPhiX - 01-21-2022, 07:08 PM
RE: Help with animated models - by GraPhiX - 01-21-2022, 07:40 PM
RE: Help with animated models - by abenedik - 01-23-2022, 10:28 PM
RE: Help with animated models - by GraPhiX - 01-24-2022, 02:53 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)