saturday06 / VRM-Addon-for-Blender

VRM Importer, Exporter and Utilities for Blender 2.93 to 4.2
https://vrm-addon-for-blender.info
MIT License
1.3k stars 142 forks source link

Bug report: use_connect is not loaded correctly #558

Open czpcf opened 3 weeks ago

czpcf commented 3 weeks ago

Describe the bug

When importing a vrm model, the property use_connect of bones is not loaded correctly and will be set to True if the tail of parent bone and the head of child bone is too close(less than float_info.epsilon). This is caused because the function connect_parent_tail_and_child_head_if_very_close_position is automatically called in importer.

To Reproduce

  1. import a vrm model
  2. select the armature and go to edit mode
  3. select a bone whose head is very close to its parent's tail(less than float_info.epsilon)
  4. go to Bone panel, find Relations and turn off Connected
  5. export the model and reopen it

Expected behavior

'use_connect' of the modified bone is True, which is not as expected

saturday06 commented 3 weeks ago

When you export the VRM file, the "use_connect" setting disappears. This is because VRM does not have "use_connect" information. If you wish to retain it, please submit a request to the VRM specification.