UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
1.91k stars 91 forks source link

Changes in Bone Targeting During Model Import/Export #156

Open kafeijk opened 3 weeks ago

kafeijk commented 3 weeks ago

I added an 'upper body2' bone to a model without a sub-standard bone (such as the MIKU model from early MMD). After importing the modified model into Blender and then exporting it, I checked it in PmxEditor. Previously, the 'upper body' bone targeted 'upper body2,' but now it has changed to a relative position. before: image

after: 无标题

When importing the model, the head and tail are checked using EditBone, but it's not the EditBone type here. https://github.com/UuuNyaa/blender_mmd_tools/blob/d148bdbd520a0ddb2ffd0389a0217a297ad107f0/mmd_tools/core/pmx/exporter.py#L407C29-L407C83 I'm not sure if the current situation is due to the code or if the file structure is inherently like this.

kafeijk commented 3 weeks ago

Additionally, if the target changes, the local axes in MMD will also change accordingly. before: 无标题 after: 无标题2