Interrupt / delverengine

Delver game engine and editor
zlib License
794 stars 79 forks source link

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

Open joshuaskelly opened 1 year ago

joshuaskelly commented 1 year ago

image

Summary

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

Notes

Bug is on this line: https://github.com/Interrupt/delverengine/blob/218c2974edb0b5feaa3f6cfc5b3000b62b5ab0d6/Dungeoneer/src/com/interrupt/dungeoneer/entities/Door.java#L516

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.