Skip to content

Fix crash when not supplying indices in AddUvMesh#149

Open
ficool2 wants to merge 1 commit into
jpcy:masterfrom
ficool2:indexcount_fix
Open

Fix crash when not supplying indices in AddUvMesh#149
ficool2 wants to merge 1 commit into
jpcy:masterfrom
ficool2:indexcount_fix

Conversation

@ficool2

@ficool2 ficool2 commented Jun 29, 2025

Copy link
Copy Markdown

If passing a mesh decl to AddUvMesh that only contained vertices, xatlas would crash as it reserved space for decl.indexCount vertices (which is 0), but the loops used the indexCount variable which was set to the vertex count

@siliconvoodoo

Copy link
Copy Markdown

looks sensible

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