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

Fix incorrect uv calculations due to BlockBench 4.9 #129

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

KitCat962
Copy link
Contributor

Blockbench 4.9 adds per-texture uv sizes which completely breaks how Figura calculates uvs.
This fixes that by grabbing the texture width, height, uv_width, and uv_height from the bbmodel and using those to calculate the uvs per texture, instead of the ProjectUV

If the texture width doesnt exist, it is assumed that the bbmodel is from 4.8 or below and will use the old method for backwards compatibility

@UnlikePaladin
Copy link
Member

Thanks for the fix!

@UnlikePaladin UnlikePaladin merged commit cfb47b6 into FiguraMC:1.20 Dec 8, 2023
1 check passed
@KitCat962 KitCat962 deleted the blockbench-4.9 branch December 13, 2023 21:18
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.

2 participants