DarklightGames / io_scene_psk_psa

A Blender extension for importing and exporting Unreal PSK and PSA files
GNU General Public License v3.0
312 stars 20 forks source link

Exporter incorrectly allows multi-root armatures to be exported in a broken state #10

Closed cmbasnett closed 2 years ago

cmbasnett commented 2 years ago

The PSK format assumes a single bone as the root, but it is possible in Blender to have multiple root bones in an armature. Our exporter simply soldiers through this and incorrectly parents all secondary root bones to the first bone in the armature, resulting in incorrectly parented bones that screw up all of the animations.

The solution here should be to strictly enforce the single-root-bone rule. In future, we can automatically insert one into the PSK and PSA upon export so that the user isn't inconvenienced by the limitation of the format.

cmbasnett commented 2 years ago

Fixed in 2.0.0 The add-on will now throw an error if there is more than one root bone marked for export.