Fix textures not being recognized as animated

This commit is contained in:
JannisX11 2024-09-05 17:48:29 +02:00
parent 97fd6b2608
commit 452829f333

View File

@ -307,7 +307,7 @@ class Texture {
}
}
get frameCount() {
if (Format.animated_textures && this.ratio !== (this.getUVWidth() / this.getUVHeight()) && 1/this.ratio % 1 === 0) {
if (Format.animated_textures && this.ratio !== (this.getUVWidth() / this.getUVHeight())) {
return Math.ceil((this.getUVWidth() / this.getUVHeight()) / this.ratio - 0.05);
}
}