-
Notifications
You must be signed in to change notification settings - Fork 25
Fix Starfield BSGeometry mesh data export #59
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
Merged
ousnius
merged 10 commits into
ousnius:main
from
DJLegends1011:fix/starfield-mesh-export
Apr 11, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
af059cf
Fix Starfield BSGeometry mesh data export
DJLegends1011 36b9feb
Add Starfield internal geometry support (flag 0x200)
DJLegends1011 c2def3c
Merge feature/starfield-internal-geometry into fix/starfield-mesh-export
DJLegends1011 01e2163
Fix sign-conversion warning in SetInternalGeomData
DJLegends1011 f499d5a
Fix BSGeometry triSize/numVerts being zeroed without mesh data
DJLegends1011 2b7cf93
Extend Starfield version range to support stream 175+
DJLegends1011 29ee2ba
Re-add IsSF() upper bound at stream version 175
DJLegends1011 e60abf1
Clamp BSGeometryMeshData numVertices on writing streams
ousnius fa0c4f1
Add tangent W support and external .mesh IO tests
ousnius abdba0c
Use size_t for deleted-triangle counter
ousnius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
BSGeometryMeshData::Sync, the new writing-mode count refresh clampsnumVerticesto 0xFFFF, but later the function unconditionally doesnumVertices = (uint16_t)nVerticesafter syncingnVertices, which overrides the clamp and can wrap ifnVertices > 65535. Consider only assigningnumVerticesfromnVerticesin reading mode, or keepnumVerticesconsistent with the same clamp when writing.