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:
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
index 4fa025b2..23d51fa6 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py
@@ -73,9 +73,7 @@ def __gather_indices(blender_primitive, blender_mesh, modifiers, export_settings
indices = blender_primitive['indices']
max_index = max(indices)
- if max_index < (1 << 8):
- component_type = gltf2_io_constants.ComponentType.UnsignedByte
- elif max_index < (1 << 16):
+ if max_index < (1 << 16):
component_type = gltf2_io_constants.ComponentType.UnsignedShort
elif max_index < (1 << 32):
component_type = gltf2_io_constants.ComponentType.UnsignedInt