FBX IO: UVs access with new uv
property
#104650
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user