From ecb04d9d729379bac8c522e500e3410249fed8cb Mon Sep 17 00:00:00 2001 From: hiwilson Date: Tue, 16 Aug 2016 14:13:05 +0800 Subject: [PATCH] Bug fix on Matrix2D.js decompose function Reset rotation value to zero if skewX and skewY is used, and rotation value is non-zero in the target. --- src/easeljs/geom/Matrix2D.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/easeljs/geom/Matrix2D.js b/src/easeljs/geom/Matrix2D.js index 93c398ca6..deac9b59e 100755 --- a/src/easeljs/geom/Matrix2D.js +++ b/src/easeljs/geom/Matrix2D.js @@ -504,6 +504,7 @@ this.createjs = this.createjs||{}; } else { target.skewX = skewX/Matrix2D.DEG_TO_RAD; target.skewY = skewY/Matrix2D.DEG_TO_RAD; + target.rotation = 0; } return target; };