Closed Nostritius closed 5 years ago
Errm, you're using spaces for indentation here...
Also, the code does the opposite of what you state here? You're only loading TXI data if there's exactly one mipmap?
Also also, what does the mipmap count have to do with the TXI data?
I'm sorry, but I'm completely confused by this PR.
Yeah, the spaces are now fixed. Yes I'm loading the TXI Data only if there is one mipmap because animated tpc images have always mipMapCount=1. So if the mipMapCount is not equal 1 it can't be an animated image and for that i don't need to load the TXI data.
Yeah, the spaces are now fixed.
Nope :P
Yes I'm loading the TXI Data only if there is one mipmap because animated tpc images have always mipMapCount=1
I dunno, that sounds like a bit of a hack...
It's especially not something we can apply to xoreos proper, because we need the TXI data for other things than just determining the animation parameters.
I'd be much more happy with a proper fix instead of this workaround.
Ok, i will rethink this.
Thanks! :)
This PR should fix #42 by only loading TXI data if there is more than one mipmap.