Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret offsets as array indices, not byte offsets #795

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

j9liu
Copy link
Contributor

@j9liu j9liu commented Jan 18, 2024

Depends on #794, so merge that first.

In EXT_structural_metadata, the arrayOffsets of a PropertyTableProperty represent array indices. However, Cesium Native treats them as byte offsets that are multiples of sizeof(T), which is wrong. This PR corrects this behavior and edits the unit tests for the proper values.

Also, I arbitrarily found and replaced instances of glm::i32mat2x2 -> glm::imat2x2, so the diff looks bigger than it actually needs to be 😅

Base automatically changed from batch-table-sentinel-fix to main January 30, 2024 04:17
@kring
Copy link
Member

kring commented Jan 30, 2024

Thanks @j9liu!

@kring kring merged commit 7579c50 into main Jan 30, 2024
14 checks passed
@kring kring deleted the correct-variable-length-arrays branch January 30, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants