[Bf-extensions-cvs] [674dcd70] master: Fix T51140: FBX import fails to read file exported from Max.
Bastien Montagne
noreply at git.blender.org
Thu Jan 24 18:26:29 CET 2019
Commit: 674dcd70ceb82a43a4c52a0ac4445b0c14ab31ef
Author: Bastien Montagne
Date: Thu Jan 24 18:25:32 2019 +0100
Branches: master
https://developer.blender.org/rBA674dcd70ceb82a43a4c52a0ac4445b0c14ab31ef
Fix T51140: FBX import fails to read file exported from Max.
Usual crap with PoS of FBX... feeling bad though, that report skipped
out of my radar for too long. :|
===================================================================
M io_scene_fbx/__init__.py
M io_scene_fbx/import_fbx.py
===================================================================
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index e677e25c..77596c8a 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, 14, 1),
+ "version": (4, 14, 2),
"blender": (2, 80, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index c186d3ab..5a3287a2 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -252,9 +252,9 @@ def elem_props_get_bool(elem, elem_prop_id, default=None):
elem_prop = elem_props_find_first(elem, elem_prop_id)
if elem_prop is not None:
assert(elem_prop.props[0] == elem_prop_id)
- assert(elem_prop.props[1] == b'bool')
+ # b'Bool' with a capital seems to be used for animated property... go figure...
+ assert(elem_prop.props[1] in {b'bool', b'Bool'})
assert(elem_prop.props[2] == b'')
- assert(elem_prop.props[3] == b'')
# we could allow other number types
assert(elem_prop.props_type[4] == data_types.INT32)
More information about the Bf-extensions-cvs
mailing list