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

Merge duplicated material assets #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OMGDucki
Copy link

Avatars processed by VRCFury (I think only when using material property toggles?) have their material assets duplicated for each mesh. This results in multiple copies of materials that can be identical, preventing them from being merged when they otherwise should be.

This change deduplicates identical material assets, allowing existing logic to merge renderers and material slots that use them.

I have not extensively tested this change aside from basic test cases, but I have been using it for five months without any apparent issues.

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.

1 participant