ColladaXna
ColladaXna copied to clipboard
AnimationImporter.cs
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.