From 2476c0b4b2789e65f1ef95989d4e42dfd784be45 Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Sat, 12 Oct 2019 10:48:46 +0200
Subject: [PATCH] FBX IO: Attempt to fix compat of custom props export.

Looks like 'flags' of custom props are always supposed to be `A+U`, for
some... reasons? See T69554 discussions.
---
 io_scene_fbx/__init__.py  | 2 +-
 io_scene_fbx/fbx_utils.py | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index bb0f8ae1d..893c13d2e 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
 bl_info = {
     "name": "FBX format",
     "author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
-    "version": (4, 20, 0),
+    "version": (4, 20, 1),
     "blender": (2, 81, 6),
     "location": "File > Import-Export",
     "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index f71e89a81..c35399b24 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -594,10 +594,12 @@ def _elem_props_flags(animatable, animated, custom):
                 return b"A+U"
             return b"A+"
         if custom:
-            return b"AU"
+            # Seems that customprops always need those 'flags', see T69554. Go figure...
+            return b"A+U"
         return b"A"
     if custom:
-        return b"U"
+        # Seems that customprops always need those 'flags', see T69554. Go figure...
+        return b"A+U"
     return b""
 
 
-- 
GitLab