Skip to content

Commit d7d08fc

Browse files
committed
Merge pull request cocos2d#3080 from VisualSJ/develop-bakeAndF
Fixed a bug that bake, setContentScaleFactor can not be used simultan…
2 parents b19dd6b + f4924a8 commit d7d08fc

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)