Fix #105045: Error importing FBX custom properties on placeholder PoseBonesv3.6.8
commitbd37c9b0fdf0e6f7f21746206f10d316506c2383
authorThomas Barlow <github@mysterymayhem.co.uk>
Wed, 10 Jan 2024 08:23:21 +0000 (10 09:23 +0100)
committerPhilipp Oeser <lichtwerk@noreply.localhost>
Wed, 10 Jan 2024 08:23:21 +0000 (10 09:23 +0100)
tree2eeba763acf3d54404fed43a94f0a29aa30043cd
parent8a4a56eae8298f996d4e9f1a189a5ea0a211b1c3
Fix #105045: Error importing FBX custom properties on placeholder PoseBones

Caused by not understanding an uncommon import case in 716702b97e where
a bone can be created without an FBX Node to import custom properties
from.

A bone in Blender is always created from an FBX Node, so it seemed like
all bones should have an FBX Node that custom properties can be imported
from. However, FBX allows bone and non-bone Nodes to be parented to one
another, which Blender cannot represent exactly due to Armatures only
containing bones. In such cases, the non-bone Node is imported as an
Object, but a bone with the same name is also created (which the Object
is parented to). The newly created bone doesn't have a Node to import
custom properties from because the Node belongs to the imported Object
instead.

---

This is a request to backport f21b90cbab for Blender 3.6 with the conflicts in `bl_info` resolved.

Pull Request: https://projects.blender.org/blender/blender-addons/pulls/105052
io_scene_fbx/__init__.py
io_scene_fbx/import_fbx.py