Skip to content

Commit f4924a8

Browse files
committed
Fixed a bug that bake, setContentScaleFactor can not be used simultaneously
1 parent b19dd6b commit f4924a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/core/sprites/CCBakeSprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ cc.BakeSprite = cc.Sprite.extend(/** @lends cc.BakeSprite# */{
7373
if(fillStyle !== locContext._context.fillStyle)
7474
locContext._context.fillStyle = fillStyle;
7575
this.getTexture().handleLoadedTexture();
76-
this.setTextureRect(cc.rect(0,0, sizeOrWidth, height), false);
76+
this.setTextureRect(cc.rect(0,0, sizeOrWidth, height), false, null, false);
7777
}
7878
});

0 commit comments

Comments
 (0)