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. :|
This commit is contained in:
parent
28324e0fb6
commit
674dcd70ce
Notes:
blender-bot
2023-02-14 19:39:54 +01:00
Referenced by issue #51140, FBX import fails to read file exported from Max
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue