Skip to content
Closed
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
12 changes: 8 additions & 4 deletions cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ cc.Node.RenderCmd.prototype = {
}
}

if (node._additionalTransformDirty) {
this._transform = t = cc.affineTransformConcat(t, node._additionalTransform); // seems like 'this._transform' can be removed
}

if (pt) {
// cc.AffineTransformConcat is incorrect at get world transform
wt.a = t.a * pt.a + t.b * pt.c; //a
Expand Down Expand Up @@ -229,6 +233,10 @@ cc.Node.RenderCmd.prototype = {
}
}

if (node._additionalTransformDirty) {
this._transform = t = cc.affineTransformConcat(t, node._additionalTransform);
}

if (pt) {
wt.a = t.a * pt.a + t.b * pt.c;
wt.b = t.a * pt.b + t.b * pt.d;
Expand All @@ -246,10 +254,6 @@ cc.Node.RenderCmd.prototype = {
}
}

if (node._additionalTransformDirty) {
this._transform = cc.affineTransformConcat(t, node._additionalTransform);
}

this._updateCurrentRegions && this._updateCurrentRegions();
this._notifyRegionStatus && this._notifyRegionStatus(cc.Node.CanvasRenderCmd.RegionStatus.DirtyDouble);

Expand Down