fix cocostudio skin setfliped.

This commit is contained in:
fusijie 2015-08-11 10:34:22 +08:00
parent 1471936c2f
commit aa1b1831e9
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];