From cb4e5b248c8a1c438b1228380bbf41b9ddf6fd90 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 8 Oct 2019 16:20:23 +0200 Subject: FBX IO: Fix pose bone custom props not being exported. We want to export editbone props in the 'edit data' NodeAttribute FBX nodes, and the posebone props in the 'object data' Model FBX nodes... Reported in T69554. --- io_scene_fbx/export_fbx_bin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'io_scene_fbx/export_fbx_bin.py') diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index b852adaa..d1ba96bb 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -1686,7 +1686,9 @@ def fbx_data_object_elements(root, ob_obj, scene_data): # Custom properties. if scene_data.settings.use_custom_props: - fbx_data_element_custom_properties(props, ob_obj.bdata) + # Here we want customprops from the 'pose' bone, not the 'edit' bone... + bdata = ob_obj.bdata_pose_bone if ob_obj.is_bone else ob_obj.bdata + fbx_data_element_custom_properties(props, bdata) # Those settings would obviously need to be edited in a complete version of the exporter, may depends on # object type, etc. -- cgit v1.2.3