Changeset View
Changeset View
Standalone View
Standalone View
io_scene_fbx/import_fbx.py
| Show First 20 Lines • Show All 2,704 Lines • ▼ Show 20 Lines | def _(): | ||||
| continue | continue | ||||
| fbx_props = (elem_find_first(fbx_obj, b'Properties70'), | fbx_props = (elem_find_first(fbx_obj, b'Properties70'), | ||||
| elem_find_first(fbx_tmpl, b'Properties70', fbx_elem_nil)) | elem_find_first(fbx_tmpl, b'Properties70', fbx_elem_nil)) | ||||
| transform_data = blen_read_object_transform_preprocess(fbx_props, fbx_obj, Matrix(), use_prepost_rot) | transform_data = blen_read_object_transform_preprocess(fbx_props, fbx_obj, Matrix(), use_prepost_rot) | ||||
| # 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. | # 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'} | is_bone = fbx_obj.props[2] in {b'LimbNode', b'Limb', b'Root'} | ||||
| fbx_helper_nodes[a_uuid] = FbxImportHelperNode(fbx_obj, bl_data, transform_data, is_bone) | 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 | # add parent-child relations and add blender data to the node | ||||
| for fbx_link in fbx_connections.elems: | for fbx_link in fbx_connections.elems: | ||||
| if fbx_link.props[0] != b'OO': | if fbx_link.props[0] != b'OO': | ||||
| continue | continue | ||||
| if fbx_link.props_type[1:3] == b'LL': | if fbx_link.props_type[1:3] == b'LL': | ||||
| c_src, c_dst = fbx_link.props[1:3] | c_src, c_dst = fbx_link.props[1:3] | ||||
| ▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines | |||||