diff options
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index afc266a2..e92d8bee 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -15,7 +15,7 @@ bl_info = { 'name': 'glTF 2.0 format', 'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', - "version": (1, 1, 3), + "version": (1, 1, 4), 'blender': (2, 81, 6), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py b/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py index afbed4d5..fc65edbd 100644 --- a/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py +++ b/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py @@ -249,6 +249,13 @@ def __compress_primitive(primitive, dll, export_settings): primitive.extensions['KHR_draco_mesh_compression'] = extension + # Remove buffer views from the accessors of the attributes which compressed. + attributes['POSITION'].buffer_view = None + if enable_normals: + attributes['NORMAL'].buffer_view = None + for tex_coord in tex_coord_attrs: + tex_coord.buffer_view = None + # Set to triangle list mode. primitive.mode = 4 |