Skip to content

Claude/fix vertex layout logging i4zo8#74

Merged
jmquigs merged 2 commits into
masterfrom
claude/fix-vertex-layout-logging-I4zo8
May 7, 2026
Merged

Claude/fix vertex layout logging i4zo8#74
jmquigs merged 2 commits into
masterfrom
claude/fix-vertex-layout-logging-I4zo8

Conversation

@jmquigs
Copy link
Copy Markdown
Owner

@jmquigs jmquigs commented May 7, 2026

No description provided.

claude and others added 2 commits May 6, 2026 23:20
The snapshot vertex reader previously relied on extractors advancing the
stream by exactly the element's natural size, with one Seek per vertex.
Layouts with gaps between elements (e.g. Position/BlendWeight/BlendIndices/
Normal at offsets 0/12/16/20 followed by TextureCoordinate at offset 32)
caused the reader to consume the 8-byte gap as the next element's data
and silently skip the real data. Now we seek to vertStart + el.Offset
before each element.

Also logs once per layout when the pre-read stream position is below the
declared element offset, surfacing layouts whose elements don't pack
contiguously. Detection uses the stream position rather than a parallel
table of element sizes.
- Sort vert elements when making id string for consistent hash code on result
@jmquigs
Copy link
Copy Markdown
Owner Author

jmquigs commented May 7, 2026

Fixes #75

@jmquigs jmquigs merged commit 4299f69 into master May 7, 2026
1 check passed
@jmquigs jmquigs deleted the claude/fix-vertex-layout-logging-I4zo8 branch May 7, 2026 00:32
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