summaryrefslogtreecommitdiff
path: root/modules/gltf/structures
diff options
context:
space:
mode:
authorLyuma <xn.lyuma@gmail.com>2023-05-09 03:29:00 -0700
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-05-12 12:31:21 +0200
commitdcca6485d0c9b1724496b150fb777fc3d0aabfa5 (patch)
tree89b981b8e30d7526c6ecc777db73dd2f05f73466 /modules/gltf/structures
parent2d7228251d59c67c40843b34250ee6392eb10faa (diff)
gltf: Permit sparse accessors without a bufferView.
(cherry picked from commit 72d131899b60ccba1d80d3da9dd2805c7941f1b4)
Diffstat (limited to 'modules/gltf/structures')
-rw-r--r--modules/gltf/structures/gltf_accessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/structures/gltf_accessor.h b/modules/gltf/structures/gltf_accessor.h
index 5b4afc79c4..1a5a910048 100644
--- a/modules/gltf/structures/gltf_accessor.h
+++ b/modules/gltf/structures/gltf_accessor.h
@@ -39,7 +39,7 @@ struct GLTFAccessor : public Resource {
friend class GLTFDocument;
private:
- GLTFBufferViewIndex buffer_view = 0;
+ GLTFBufferViewIndex buffer_view = -1;
int byte_offset = 0;
int component_type = 0;
bool normalized = false;