Skip to content

Commit

Permalink
Merge pull request #2251 from KhronosGroup/fix_normalized_draco
Browse files Browse the repository at this point in the history
Fix #2013 - normalized Draco accessors
  • Loading branch information
julienduroure committed May 24, 2024
2 parents 12541f8 + 3ade756 commit 3103e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/io_scene_gltf2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (4, 2, 39),
"version": (4, 2, 40),
'blender': (4, 2, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def encode_scene_primitives(scenes, export_settings):
dll.encoderSetIndices.argtypes = [c_void_p, c_size_t, c_uint32, c_void_p]

dll.encoderSetAttribute.restype = c_uint32
dll.encoderSetAttribute.argtypes = [c_void_p, c_char_p, c_size_t, c_char_p, c_void_p]
dll.encoderSetAttribute.argtypes = [c_void_p, c_char_p, c_size_t, c_char_p, c_void_p, c_bool]

dll.encoderEncode.restype = c_bool
dll.encoderEncode.argtypes = [c_void_p, c_uint8]
Expand Down Expand Up @@ -135,7 +135,7 @@ def __encode_primitive(primitive, dll, export_settings, encoded_primitives_cache
draco_ids = {}
for attr_name in attributes:
attr = attributes[attr_name]
draco_id = dll.encoderSetAttribute(encoder, attr_name.encode(), attr.component_type, attr.type.encode(), attr.buffer_view.data)
draco_id = dll.encoderSetAttribute(encoder, attr_name.encode(), attr.component_type, attr.type.encode(), attr.buffer_view.data, attr.normalized)
draco_ids[attr_name] = draco_id

dll.encoderSetIndices(encoder, indices.component_type, indices.count, indices.buffer_view.data)
Expand Down

0 comments on commit 3103e30

Please sign in to comment.