diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-08-06 13:12:03 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-08-06 13:12:03 +0300 |
commit | e0b06af3f1565a2ed0e9a68961e484cd80fd2c83 (patch) | |
tree | 036871e3f0a7a4163f512b123595f48dda21f7e8 /io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | |
parent | fbf268d184cedb7f4520f4dda6e313d03591bfc2 (diff) | |
parent | ef0027e72d295f5bbae1905c6260878851131eef (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py index f28a1f10..8572d185 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py @@ -44,7 +44,7 @@ def array_to_accessor(array, component_type, data_type, include_max_and_min=Fals amin = np.amin(array, axis=0).tolist() return gltf2_io.Accessor( - buffer_view=gltf2_io_binary_data.BinaryData(array.tobytes()), + buffer_view=gltf2_io_binary_data.BinaryData(array.tobytes(), gltf2_io_constants.BufferViewTarget.ARRAY_BUFFER), byte_offset=None, component_type=component_type, count=len(array), @@ -142,7 +142,7 @@ def __gather_colors(blender_primitive, export_settings): comp_type = gltf2_io_constants.ComponentType.Float attributes[color_id] = gltf2_io.Accessor( - buffer_view=gltf2_io_binary_data.BinaryData(colors.tobytes()), + buffer_view=gltf2_io_binary_data.BinaryData(colors.tobytes(), gltf2_io_constants.BufferViewTarget.ARRAY_BUFFER), byte_offset=None, component_type=comp_type, count=len(colors), |