ECToo / 3d-model-prep

Automatically exported from code.google.com/p/3d-model-prep
0 stars 0 forks source link

Update SkinnedModelImporter.zip for XNA 4.0 Refresh #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Exception "ArgumentException: An element with the same key already exists in 
the Dictionary<TKey, TValue>."

Line 102 assumes that each animation will only be added once.

102: masternode.Animations.Add(anim.Key, anim.Value);

However, in XNA 4.0 Refresh the importer loads multiple takes, so the master 
file will contain all the animations (all except the first with the wrong 
length). The fix is simply to overwrite animations in the dictionary. The 
incorrect animations are always written first so there should be no issue.

The second thing is that file header should mention that the FBXImporter is 
located inside its own dll 
"Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll"

Original issue reported on code.google.com by Jason...@gmail.com on 15 Apr 2012 at 7:30

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to attach the updated file only two small changes. Mention to 
FBXImporter.dll and overwrite animations

Original comment by Jason...@gmail.com on 15 Apr 2012 at 7:32

Attachments: