fix: collect glTF indices once instead of consuming iterator twice #717

Open
SakulFlee wants to merge 1 commit from fix/gltf-index-iterator-double-consume into main
Owner

The glTF reader's read_indices() was called twice - once at the start
and again later for normal calculation. The second call always returned
None since the reader's internal state was already consumed, causing
indices_vec to always be empty and preventing normal calculation from
index data. Now indices are collected once and reused.

The glTF reader's read_indices() was called twice - once at the start and again later for normal calculation. The second call always returned None since the reader's internal state was already consumed, causing indices_vec to always be empty and preventing normal calculation from index data. Now indices are collected once and reused.
fix: collect glTF indices once instead of consuming iterator twice
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
f645b5057b
The glTF reader's read_indices() was called twice - once at the start
and again later for normal calculation. The second call always returned
None since the reader's internal state was already consumed, causing
indices_vec to always be empty and preventing normal calculation from
index data. Now indices are collected once and reused.
Some checks are pending
ci/woodpecker/push/linting Pipeline was successful
ci/woodpecker/pr/test
Required
ci/woodpecker/pr/linting
Required
Some required checks are missing.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/gltf-index-iterator-double-consume:fix/gltf-index-iterator-double-consume
git switch fix/gltf-index-iterator-double-consume
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SakulFlee/Orbital!717
No description provided.