taniwha / io_object_mu

Python .mu reader/writer and blender import/export addon
GNU General Public License v2.0
120 stars 51 forks source link

Export: Unable to export multiple deform meshes #82

Closed Kavaeric closed 2 months ago

Kavaeric commented 2 months ago

Issue submitted as requested:

Attempting to export a part with multiple mesh objects parented to an Armature with Armature Deform results in an error reading "too many deform children, ignoring excess":

blender_VAiQTkh7eG

The resulting part in-game will only have the first deform child present:

KSP_x64_eQ8iEXzosH

Aside from the missing deform mesh, the part otherwise behaves as expected; the deform mesh that is still present continues to deform with the gimbal as normal.

While normally performance standards would request these deform meshes be merged into a single object, there are times when one might want to have multiple deform meshes, e.g. for the creation of part variants.


The engine above has been linked here for testing purposes, including its Blender file. The Blender file consists of the engine model, armature with a gimbal bone, and two mesh objects named testEngine_Deform-1 and testEngine_Deform-2 parented to the armature object.

TestEngine.zip

Install by copying the TestEngine folder it to the GameData folder, then replace the .mu file as needed.