Skip to content

Commit 83cab3e

Browse files
committed
Merge pull request #39 from VisualSJ/Iss2416_RefactorRenderer
Issue cocos2d#2416: The temporary repair of cc.follow
2 parents cf4908d + 63cbf7d commit 83cab3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cocos2d/actions/CCAction.js

+3
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@ cc.Follow = cc.Action.extend(/** @lends cc.Follow# */{
625625
tempPosX = this._halfScreenSize.x - tempPosX;
626626
tempPosY = this._halfScreenSize.y - tempPosY;
627627

628+
//TODO Temporary treatment - The dirtyFlag symbol error
629+
this.target._renderCmd._dirtyFlag = 0;
630+
628631
if (this._boundarySet) {
629632
// whole map fits inside a single screen, no need to modify the position - unless map boundaries are increased
630633
if (this._boundaryFullyCovered)

0 commit comments

Comments
 (0)