mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix textures not being recognized as animated
This commit is contained in:
parent
97fd6b2608
commit
452829f333
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user