diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index e1f0ab6be..a8ac2d3ee 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -1342,7 +1342,7 @@ def fbx_data_mesh_elements(root, me_obj, scene_data, done_meshes): elem_data_single_string(lay_uv, b"MappingInformationType", b"ByPolygonVertex") elem_data_single_string(lay_uv, b"ReferenceInformationType", b"IndexToDirect") - uvlayer.data.foreach_get("uv", t_luv) + uvlayer.uv.foreach_get("vector", t_luv) # t_luv_fast_pair_view is a view in a dtype that compares elements by individual bytes, but float types have # separate byte representations of positive and negative zero. For uniqueness, these should be considered diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index dc3197f21..fec5f5d8b 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -1227,7 +1227,7 @@ def blen_read_geom_layer_uv(fbx_obj, mesh): "" % (layer_id, fbx_layer_name, mesh.name)) continue - blen_data = uv_lay.data + blen_data = uv_lay.uv # some valid files omit this data if fbx_layer_data is None: @@ -1235,7 +1235,7 @@ def blen_read_geom_layer_uv(fbx_obj, mesh): continue blen_read_geom_array_mapped_polyloop( - mesh, blen_data, "uv", np.single, + mesh, blen_data, "vector", np.single, fbx_layer_data, fbx_layer_index, fbx_layer_mapping, fbx_layer_ref, 2, 2, layer_id,