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

Door Texture Will Not Update in Editor Until Mesh Changes #306

Open
joshuaskelly opened this issue Nov 14, 2022 · 0 comments
Open

Door Texture Will Not Update in Editor Until Mesh Changes #306

joshuaskelly opened this issue Nov 14, 2022 · 0 comments
Labels
bug Something isn't working editor Editor related issue good first issue Good for newcomers

Comments

@joshuaskelly
Copy link
Collaborator

image

Summary

In editor door entities will not update their texture until their mesh changes.

Notes

Bug is on this line:

if(!(drawable instanceof DrawableMesh) || (lastMeshFile != null && !lastMeshFile.equals(doorMesh))) {

The fix would be to cache the last texture used and check for that as well. See Model.java for how it is done there.

@joshuaskelly joshuaskelly added bug Something isn't working good first issue Good for newcomers editor Editor related issue labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor Editor related issue good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant