Merge pull request #13307 from fusijie/fix_cocostudio_skin_flip

fix cocostudio skin setfliped.
This commit is contained in:
子龙山人 2015-08-12 14:34:46 +08:00
commit 86d674030e
1 changed files with 9 additions and 0 deletions

View File

@ -170,6 +170,15 @@ void Skin::updateTransform()
float x2 = x1 + size.width;
float y2 = y1 + size.height;
if (_flippedX)
{
std::swap(x1, x2);
}
if (_flippedY)
{
std::swap(y1, y2);
}
float x = transform.m[12];
float y = transform.m[13];