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

Mesh preview robustness #1141

Merged

Conversation

manavortex
Copy link
Contributor

Mesh preview robustness

(Hopefully) Changed:

Clicking the "Generate materials for appearance" button will now recreate the materials. This was previously done only once (abort condition: rendered), and the user would be required to re-open the file if they changed anything.

Fixed: Exception breaking mesh preview

If more materialEntries than material definitions are present, there would be exceptions, and the mesh preview would break.
New behaviour: it will now stop parsing when it has reached the end of the list. Appearances with missing materials won't be listed. (Potentially it might be better to assign a default material? Maybe screaming pink with "UNDEFINED" on it? I don't know how, though.)

Will create a follow-up ticket.

Copy link
Member

@rfuzzo rfuzzo left a comment

Choose a reason for hiding this comment

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

Thank you! This looks all good.

@rfuzzo rfuzzo merged commit 0309ff2 into WolvenKit:main Feb 4, 2023
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.

None yet

2 participants