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

Downgrade draco assert to warning #5312

Merged
merged 3 commits into from
May 10, 2023

Conversation

slimbuck
Copy link
Member

The test is not fatal, downgrade to warning.

@slimbuck slimbuck requested a review from a team May 10, 2023 10:01
@slimbuck slimbuck self-assigned this May 10, 2023
Debug.assert(numVertices === accessors[primitive.attributes.POSITION].count, 'mesh has invalid draco sizes');
if (numVertices !== accessors[primitive.attributes.POSITION].count) {
Debug.warn('mesh has invalid draco sizes');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

add the whole thing inside Debug.call(() => { } so that even the condition gets stripped out
and maybe add that glb name if possible
and warnOnce could be good as well

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on some identifier would be great
image

Copy link
Member Author

Choose a reason for hiding this comment

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

Projects don't need reimport TBH. We'll patch the engine with this change now so we can get it out quickly, then add more debugging information later.

@slimbuck slimbuck merged commit 08657b6 into playcanvas:main May 10, 2023
7 checks passed
@slimbuck slimbuck deleted the draco-assert-downgrade branch May 10, 2023 10:15
slimbuck added a commit that referenced this pull request May 10, 2023
* downgrade assert to warn
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