Skip to content

GLTFDocument: don't serialize empty buffers#109722

Open
nikitalita wants to merge 1 commit intogodotengine:masterfrom
nikitalita:fix-gltf-empty-buffers
Open

GLTFDocument: don't serialize empty buffers#109722
nikitalita wants to merge 1 commit intogodotengine:masterfrom
nikitalita:fix-gltf-empty-buffers

Conversation

@nikitalita
Copy link
Copy Markdown
Contributor

When serializing to GLTF, we don't want to write buffers if they're empty (it's against spec). This changes the serializing process so that empty buffers are not added to the document or written to disk (unless there are non-empty buffers subsequent to it, which is specifically handled).

@nikitalita nikitalita requested a review from a team as a code owner August 18, 2025 05:15
@AThousandShips AThousandShips added bug enhancement topic:3d cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Aug 18, 2025
@AThousandShips AThousandShips added this to the 4.6 milestone Aug 18, 2025
Copy link
Copy Markdown
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conflicts with PR #109449, which refactors some of this logic. After PR #109449 is merged and this is rebased, I will be happy to give this a review.

@Repiteo Repiteo modified the milestones: 4.6, 4.x Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release enhancement topic:3d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants