ross-g / io_pdx_mesh

Import/Export files for the Clausewitz game engine
GNU General Public License v3.0
88 stars 11 forks source link

Export hierarchy reading error #94

Open Karguinn opened 5 months ago

Karguinn commented 5 months ago

When exporting, the hierarchy of the armature is read and the top result with all it's children is compared to the vertex groups and used for export.

If a non-deform bone is used (fe. for IK controllers), not parented to the root bone and checked as ignored it will be on the same level of the bone hierarchy as the root bone. The order in which they are put on at same level is based on time of creation and changes to the bone (subdivison etc.). If the non-deform bone is above the root bone it and it's children will be used instead of the root bone, which will lead to an export error.

Said error: obraz

The error asks the user to check whenever the bones have a pdx ignore attribute on them, which is misleading as the problem is somewhere else.

Please add a if check for the first bone used to create the list to check whenever it doesn't have the ignore bone attribute. If it does look for the next bone on the same level.

As an example: This gives an error obraz

This doesn't obraz