Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cocos2d/core/sprite_nodes/CCSprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ cc.Sprite = cc.NodeRGBA.extend(/** @lends cc.Sprite# */{

// by default use "Self Render".
// if the sprite is added to a batchnode, then it will automatically switch to "batchnode Render"
this.setBatchNode(null);
this.setBatchNode(this._batchNode);
this._quadDirty = true;
this._callLoadedEventCallbacks();
},
Expand All @@ -1333,7 +1333,7 @@ cc.Sprite = cc.NodeRGBA.extend(/** @lends cc.Sprite# */{

// by default use "Self Render".
// if the sprite is added to a batchnode, then it will automatically switch to "batchnode Render"
this.setBatchNode(null);
this.setBatchNode(this._batchNode);
this._callLoadedEventCallbacks();
},

Expand Down