From 72d131899b60ccba1d80d3da9dd2805c7941f1b4 Mon Sep 17 00:00:00 2001 From: Lyuma Date: Tue, 9 May 2023 03:29:00 -0700 Subject: [PATCH] gltf: Permit sparse accessors without a bufferView. --- modules/gltf/doc_classes/GLTFAccessor.xml | 2 +- modules/gltf/structures/gltf_accessor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gltf/doc_classes/GLTFAccessor.xml b/modules/gltf/doc_classes/GLTFAccessor.xml index a6517a7fde2..e4e4b79d6ea 100644 --- a/modules/gltf/doc_classes/GLTFAccessor.xml +++ b/modules/gltf/doc_classes/GLTFAccessor.xml @@ -7,7 +7,7 @@ - + diff --git a/modules/gltf/structures/gltf_accessor.h b/modules/gltf/structures/gltf_accessor.h index 5b4afc79c4a..1a5a910048b 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;