ColladaXna icon indicating copy to clipboard operation
ColladaXna copied to clipboard

AnimationImporter.cs

Open Niittis opened this issue 11 years ago • 5 comments

Hi

In the Titles file function: static bool DoesAnimationAffectJoints(Dictionary<string, Joint> joints, XmlNode xmlAnimation)

Lines: XmlNode xmlChannel = xmlAnimation.SelectSingleNode("//channel"); ----- 8<---------------- string target = xmlChannel.Attributes["target"].Value;

Seems always to ALWAYS inspect the first animations channels target, instead of the parameters one..

It started to work more nicely with following line: XmlNode xmlChannel = xmlAnimation.SelectSingleNode("animation/channel");

Does this make any sense... ?

I found this when Animators Max spitted out some animated joints without any frames.

Best, Niittis

ps. Thanks for nice piece of Code.

Niittis avatar Aug 22 '12 11:08 Niittis