Zero out the joints of an armature

I’ve written a plugin to export my models out of Blender to load into my game engine.

I’m having a problem exporting the key frame data because some of the rotations have 180 degrees applied to them.

I ran into the same problem when I was using MilkShape but MilkShape has a “zero joints” tool feature to correct the problem creating your armature.

Does Blender have a similar feature and where would that be?

Thanks.

never mind.

Since Blender gives it’s rotation data as Quaternions. What I didn’t know is that it orders it’s data as w,x,y,z and I was assuming x,y,z,w.

So seeing the 3.1415… I automatically assumed it was doing what I remember MilkShape to be doing.

thanks.