[Bf-extensions-cvs] [2476c0b4] blender-v2.81-release: FBX IO: Attempt to fix compat of custom props export.

Bastien Montagne noreply at git.blender.org
Sat Oct 12 10:58:57 CEST 2019


Commit: 2476c0b4b2789e65f1ef95989d4e42dfd784be45
Author: Bastien Montagne
Date:   Sat Oct 12 10:48:46 2019 +0200
Branches: blender-v2.81-release
https://developer.blender.org/rBA2476c0b4b2789e65f1ef95989d4e42dfd784be45

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.

===================================================================

M	io_scene_fbx/__init__.py
M	io_scene_fbx/fbx_utils.py

===================================================================

diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index bb0f8ae1..893c13d2 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 f71e89a8..c35399b2 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""



More information about the Bf-extensions-cvs mailing list