Fix T46912: FBX import from Wow Model Viewer not working.
First file ever having 'Limb' (in addition to 'LimbNode'!) bones... Looks like we can more or less use them as 'LimbNode' ones, though.
This commit is contained in:
parent
fb661e5a13
commit
2c2c7751c4
Notes:
blender-bot
2023-02-14 19:52:01 +01:00
Referenced by issue #46912, FBX import from Wow Model Viewer not working.
|
@ -21,7 +21,7 @@
|
|||
bl_info = {
|
||||
"name": "FBX format",
|
||||
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
|
||||
"version": (3, 6, 5),
|
||||
"version": (3, 7, 0),
|
||||
"blender": (2, 76, 0),
|
||||
"location": "File > Import-Export",
|
||||
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
|
||||
|
|
|
@ -2534,7 +2534,9 @@ def load(operator, context, filepath="",
|
|||
assert(fbx_props[0] is not None)
|
||||
|
||||
transform_data = blen_read_object_transform_preprocess(fbx_props, fbx_obj, Matrix(), use_prepost_rot)
|
||||
is_bone = fbx_obj.props[2] in {b'LimbNode'} # Note: 'Root' "bones" are handled as (armature) objects.
|
||||
# Note: 'Root' "bones" are handled as (armature) objects.
|
||||
# Note: See T46912 for first FBX file I ever saw with 'Limb' bones - thought those were totally deprecated.
|
||||
is_bone = fbx_obj.props[2] in {b'LimbNode', b'Limb'}
|
||||
fbx_helper_nodes[a_uuid] = FbxImportHelperNode(fbx_obj, bl_data, transform_data, is_bone)
|
||||
|
||||
# add parent-child relations and add blender data to the node
|
||||
|
|
Loading…
Reference in New Issue