From 3f48d06150acdf6e0e671739fe4dfa3bb8bf59ca Mon Sep 17 00:00:00 2001 From: cptbtptpbcptdtptp Date: Thu, 9 Jan 2025 18:17:36 +0800 Subject: [PATCH] feat: update code --- packages/loader/src/SpriteAtlasLoader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/loader/src/SpriteAtlasLoader.ts b/packages/loader/src/SpriteAtlasLoader.ts index 170dd6288d..6d154dd9dd 100644 --- a/packages/loader/src/SpriteAtlasLoader.ts +++ b/packages/loader/src/SpriteAtlasLoader.ts @@ -104,8 +104,8 @@ class SpriteAtlasLoader extends Loader { } config.atlasRotated && (sprite.atlasRotated = true); } - width === undefined || sprite.width === width; - height === undefined || sprite.height === height; + width === undefined || (sprite.width = width); + height === undefined || (sprite.height = height); return sprite; } }