fix: derp

This commit is contained in:
cha0s 2024-07-02 17:47:57 -05:00
parent b65714589f
commit 24a35b5f2a

View File

@ -44,7 +44,7 @@ export default class VisibleAabbs extends System {
if (VisibleAabb) { if (VisibleAabb) {
let size = undefined; let size = undefined;
if (Sprite) { if (Sprite) {
const frame = '' !== Sprite.animation const frame = Sprite.animation
? Sprite.$$sourceJson.animations[Sprite.animation][Sprite.frame] ? Sprite.$$sourceJson.animations[Sprite.animation][Sprite.frame]
: ''; : '';
size = Sprite.$$sourceJson.frames[frame].sourceSize; size = Sprite.$$sourceJson.frames[frame].sourceSize;