Skip to content

Commit

Permalink
Merge pull request godotengine#76875 from lyuma/fix_zero_sparse_acces…
Browse files Browse the repository at this point in the history
…sors

gltf: Permit sparse accessors without a bufferView.
  • Loading branch information
akien-mga committed May 9, 2023
2 parents 1d87b36 + 72d1318 commit f20061d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gltf/doc_classes/GLTFAccessor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tutorials>
</tutorials>
<members>
<member name="buffer_view" type="int" setter="set_buffer_view" getter="get_buffer_view" default="0">
<member name="buffer_view" type="int" setter="set_buffer_view" getter="get_buffer_view" default="-1">
</member>
<member name="byte_offset" type="int" setter="set_byte_offset" getter="get_byte_offset" default="0">
</member>
Expand Down
2 changes: 1 addition & 1 deletion modules/gltf/structures/gltf_accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f20061d

Please sign in to comment.