cocos2d/cocos2d-html5 — pull request #1912 by tovchenko (2014-06-11 09:25:03+00:00)
Title: fixed cc.Skin bounding box calculation for canvas rendering

The problem was: when I insert my animation created in CocoStudioAnimation to my project it is rendered correct when I use WebGL mode, but when I use Canvas mode the root position of animation was wrong, it had been caused by bounding box calculation in CCSkin.js. The transform which is changing for canvas mode in updateArmatureTransform method mustn't be used in getBoundingBox method, this method must use original transform which I get by using the same negative transponent algorithm in the method. And also I improved this calculation algorithm to the shortest form. Now animations are being rendered in the same position for WebGL and Canvas mode.