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

[1.20.2] Fix ObjLoader leaking and using outdated ResourceManager #203

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

XFactHD
Copy link
Member

@XFactHD XFactHD commented Oct 30, 2023

This PR fixes the ObjLoader caching the wrong ResourceManager at the end of every reload, leading to an outdated one being used on any subsequent reload, instead of always using the "root" ResourceManager stored in Minecraft.

Fixes #162

Also included is a fix to the way the OBJ model calculates texture coordinates as the UV getters in TextureAtlasSprite were changed to take values between 0 and 1 instead of 0 and 16.

@sciwhiz12 sciwhiz12 added bug A bug or error 1.20 Targeted at Minecraft 1.20 rendering Related to rendering labels Oct 30, 2023
@sciwhiz12 sciwhiz12 enabled auto-merge (squash) November 1, 2023 07:23
@sciwhiz12 sciwhiz12 merged commit 48f88f0 into neoforged:1.20.x Nov 1, 2023
2 checks passed
@XFactHD XFactHD deleted the obj_loader_leak branch November 1, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20 Targeted at Minecraft 1.20 bug A bug or error rendering Related to rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OBJ loader leaks and uses outdated ResourceManagers
3 participants