Browse Source

Blender: Set .itemSize of index buffer to 1.

tschw 10 years ago
parent
commit
66e82360a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/exporters/blender/addons/io_three/exporter/geometry.py

+ 1 - 1
utils/exporters/blender/addons/io_three/exporter/geometry.py

@@ -496,7 +496,7 @@ class Geometry(base_classes.BaseNode):
                 self[constants.ATTRIBUTES][key][constants.ARRAY] = array
                 self[constants.ATTRIBUTES][key][constants.ARRAY] = array
 
 
             self[constants.ATTRIBUTES][constants.INDEX] = {
             self[constants.ATTRIBUTES][constants.INDEX] = {
-                constants.ITEM_SIZE: 3,
+                constants.ITEM_SIZE: 1,
                 constants.TYPE: option_index_type,
                 constants.TYPE: option_index_type,
                 constants.ARRAY: index_data
                 constants.ARRAY: index_data
             }
             }