FBX IO: Fix Empty export type control also affecting armatures
commitfbcdfa34b967a64178ad87bc0c42266726f3e035
authorThomas Barlow <github@mysterymayhem.co.uk>
Mon, 18 Sep 2023 23:32:24 +0000 (19 01:32 +0200)
committerMysteryem <mysteryem@noreply.localhost>
Mon, 18 Sep 2023 23:32:24 +0000 (19 01:32 +0200)
tree7f89dee04fdb783c91a30117eeee7cd23c660df5
parent73c65b9a44ff6a5182d433bc991359a7a2a43676
FBX IO: Fix Empty export type control also affecting armatures

The exported type of the NodeAttribute for Empty Objects can be
controlled using a custom property called 'fbx_type' on the Object. This
feature was also being applied to Armature Objects because they use the
same function for exporting their NodeAttribute.

A check has now been added such that the exported type can only be
changed by the 'fbx_type' custom property when the Object is an Empty.

Pull Request: https://projects.blender.org/blender/blender-addons/pulls/104887
io_scene_fbx/__init__.py
io_scene_fbx/export_fbx_bin.py