mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
minor fixed
This commit is contained in:
@@ -94,8 +94,8 @@ let dynamicAtlasManager = {
|
||||
if (!this.enabled || _atlasIndex === _maxAtlasCount ||
|
||||
!spriteFrame || spriteFrame._oriInfo) return;
|
||||
|
||||
let rect = spriteFrame._rect;
|
||||
if (rect.width > _maxFrameSize || rect.height > _maxFrameSize) {
|
||||
let texture = spriteFrame._texture;
|
||||
if (texture.width > _maxFrameSize || texture.height > _maxFrameSize) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user