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

Calculate draco indices #5316

Merged
merged 1 commit into from May 10, 2023
Merged

Calculate draco indices #5316

merged 1 commit into from May 10, 2023

Conversation

slimbuck
Copy link
Member

This PR fixes a bug introduced in #5208.

An old version of the playcanvas glb converter was writing incorrect count values for number of vertices and indices in some cases.

This PR ignores the values written in the file json and uses the counts returned from draco instead.

@slimbuck slimbuck requested a review from a team May 10, 2023 14:12
@slimbuck slimbuck self-assigned this May 10, 2023
Debug.warn('mesh has invalid vertex count');
}
if (numIndices !== accessors[primitive.indices].count) {
Debug.warn('mesh has invalid index count');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still no way to print the glb name? Without it i's not super useful message.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope. user doesn't need to do anything anyway.

@slimbuck slimbuck merged commit 8fd5a03 into playcanvas:main May 10, 2023
7 checks passed
@slimbuck slimbuck deleted the draco-index-fix branch May 10, 2023 14:26
slimbuck added a commit that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants