diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-08-08 17:03:25 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-08-08 17:03:25 +0300 |
commit | ce7f98b3c48dff89c4135c82784be6320d40314e (patch) | |
tree | 1b88f5a9a8b9ad6e7b33e7637142bab864866692 /io_scene_gltf2/blender | |
parent | c0522fcf8f23e77c5c68c1099a7140839a8d7d64 (diff) | |
parent | 9fd05ef46664a8e1e6455ceeea2ff3d7dce84506 (diff) |
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py index e393eb86..e13b9c8f 100755 --- a/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py +++ b/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py @@ -200,7 +200,7 @@ def do_primitives(gltf, mesh_idx, skin_idx, mesh, ob): uvs = BinaryData.decode_accessor(gltf, prim.attributes['TEXCOORD_%d' % uv_i], cache=True) uvs = uvs[indices] else: - uvs = np.zeros((len(indices), 3), dtype=np.float32) + uvs = np.zeros((len(indices), 2), dtype=np.float32) loop_uvs[uv_i] = np.concatenate((loop_uvs[uv_i], uvs)) for col_i in range(num_cols): |