Skip to content

Commit fd904cb

Browse files
author
pandamicro
committed
Fix Armature transform issue on Canvas
1 parent e715f65 commit fd904cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/core/renderer/RendererCanvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ cc.rendererCanvas = {
418418
//ugly for armature
419419
this.restore();
420420
this.save();
421-
this._context.transform(t.a, -t.b, -t.c, t.d, t.tx * scaleX, -(t.ty * scaleY));
421+
this._context.transform(t.a * scaleX, -t.b * scaleY, -t.c * scaleX, t.d * scaleY, t.tx * scaleX, -(t.ty * scaleY));
422422
} else {
423423
this._context.setTransform(t.a * scaleX, -t.b * scaleY, -t.c * scaleX, t.d * scaleY, this._offsetX + t.tx * scaleX, this._realOffsetY - (t.ty * scaleY));
424424
}

0 commit comments

Comments
 (0)