Skip to content

Commit e666a01

Browse files
author
pandamicro
committed
Merge branch 'develop' of github.com:anlide/cocos2d-html5 into legend
# Conflicts: # cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js
2 parents 956b26e + 43c08b2 commit e666a01

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ cc.Node.RenderCmd.prototype = {
230230
}
231231
}
232232

233+
if (node._additionalTransformDirty) {
234+
cc.affineTransformConcatIn(t, node._additionalTransform);
235+
}
236+
233237
if (pt) {
234238
// cc.AffineTransformConcat is incorrect at get world transform
235239
wt.a = t.a * pt.a + t.b * pt.c; //a
@@ -265,6 +269,10 @@ cc.Node.RenderCmd.prototype = {
265269
}
266270
}
267271

272+
if (node._additionalTransformDirty) {
273+
cc.affineTransformConcatIn(t, node._additionalTransform);
274+
}
275+
268276
if (pt) {
269277
wt.a = t.a * pt.a + t.b * pt.c;
270278
wt.b = t.a * pt.b + t.b * pt.d;
@@ -282,10 +290,6 @@ cc.Node.RenderCmd.prototype = {
282290
}
283291
}
284292

285-
if (node._additionalTransformDirty) {
286-
cc.affineTransformConcatIn(t, node._additionalTransform);
287-
}
288-
289293
if (this._updateCurrentRegions) {
290294
this._updateCurrentRegions();
291295
this._notifyRegionStatus && this._notifyRegionStatus(cc.Node.CanvasRenderCmd.RegionStatus.DirtyDouble);

0 commit comments

Comments
 (0)