Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2020-08-08 17:02:04 +0300
committerJulien Duroure <julien.duroure@gmail.com>2020-08-08 17:02:04 +0300
commit9fd05ef46664a8e1e6455ceeea2ff3d7dce84506 (patch)
treeb922c7d570a120eb403dd330b54343bcc78c27e0 /io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
parent7cc963d96c2dd4fc4102750b843f2ba8688c6f24 (diff)
glTF importer: fix regression for primitives having different numbers of TEXCOORD_{n}s
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_mesh.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_mesh.py2
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):