Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@robertdorn83
Copy link
Collaborator

This will fix import erros, when SubMeshes are not sharing the exact same attributes. e.g.: SubMesh 0 uses only Position and UV0, but SubMesh 1 would also using an extra UV layout.
Previously we checked only the first SubMesh, which attributes are required to build a Unity Mesh. This leads to uninitialized arrrays. Now we loop through all SubMeshes and create first a collection of all used Attributes, so we know which attribute arrays we need to create.

This fixed issue #808
Test File from the issue:
File

@hybridherbst hybridherbst merged commit af4a386 into dev Mar 6, 2025
1 check passed
@hybridherbst hybridherbst deleted the fix/primitives-with-different-attributes branch March 27, 2025 10:47
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.

3 participants