{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3051","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3051/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3051/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3051/events","html_url":"https://github.com/cocos2d/cocos2d-html5/issues/3051","id":99634628,"number":3051,"title":"wrong armature position in json scene","user":{"login":"jaunusa","id":6310961,"avatar_url":"https://avatars.githubusercontent.com/u/6310961?v=3","gravatar_id":"","url":"https://api.github.com/users/jaunusa","html_url":"https://github.com/jaunusa","followers_url":"https://api.github.com/users/jaunusa/followers","following_url":"https://api.github.com/users/jaunusa/following{/other_user}","gists_url":"https://api.github.com/users/jaunusa/gists{/gist_id}","starred_url":"https://api.github.com/users/jaunusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaunusa/subscriptions","organizations_url":"https://api.github.com/users/jaunusa/orgs","repos_url":"https://api.github.com/users/jaunusa/repos","events_url":"https://api.github.com/users/jaunusa/events{/privacy}","received_events_url":"https://api.github.com/users/jaunusa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T11:55:36Z","updated_at":"2015-09-01T08:06:24Z","closed_at":null,"body":"Create a simple scene in Cocos Studio, add the default armature. Export it and load it into Cocos JS project.\r\n\r\nYou will see that the position is incorrect. The position can be fixed by calling this function on the armature:\r\n\r\n`armature.updateOffsetPoint();`\r\n\r\n\r\nI think some miscalculation happens in CCArmature.js (line 383), when this functions are called:\r\n\r\n`return cc.rectApplyAffineTransform(boundingBox, this.getNodeToParentTransform());`\r\n\r\nUntill this line the `boundingBox` values are correct. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/comments/136625912","html_url":"https://github.com/cocos2d/cocos2d-html5/issues/3051#issuecomment-136625912","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3051","id":136625912,"user":{"login":"pixmaster","id":3305295,"avatar_url":"https://avatars.githubusercontent.com/u/3305295?v=3","gravatar_id":"","url":"https://api.github.com/users/pixmaster","html_url":"https://github.com/pixmaster","followers_url":"https://api.github.com/users/pixmaster/followers","following_url":"https://api.github.com/users/pixmaster/following{/other_user}","gists_url":"https://api.github.com/users/pixmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/pixmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixmaster/subscriptions","organizations_url":"https://api.github.com/users/pixmaster/orgs","repos_url":"https://api.github.com/users/pixmaster/repos","events_url":"https://api.github.com/users/pixmaster/events{/privacy}","received_events_url":"https://api.github.com/users/pixmaster/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T08:06:24Z","updated_at":"2015-09-01T08:06:24Z","body":"Update for 3.7.1\r\nArmature position fixed.\r\nTextBMFont not fixed. TextBMFont is incorrect if use text color - \"CColor\" in scene json."}}