minor fixed

This commit is contained in:
yinkaile
2018-04-17 21:32:13 +08:00
parent 441d88f874
commit b39a949aa3
@@ -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;
}