Skip to content

Commit 7daa471

Browse files
author
pandamicro
committed
Fix transform not updated after texture changing
1 parent fd904cb commit 7daa471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos2d/core/sprites/CCSprite.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ cc.Sprite = cc.Node.extend(/** @lends cc.Sprite# */{
293293
locRect.y = rect.y;
294294
locRect.width = rect.width;
295295
locRect.height = rect.height;
296+
this._renderCmd.setDirtyFlag(cc.Node._dirtyFlags.transformDirty);
296297
},
297298

298299
/**

0 commit comments

Comments
 (0)