diff --git a/cocos/2d/CCSprite.cpp b/cocos/2d/CCSprite.cpp index eb20451354bf..ea569ef26764 100644 --- a/cocos/2d/CCSprite.cpp +++ b/cocos/2d/CCSprite.cpp @@ -261,7 +261,10 @@ bool Sprite::initWithTexture(Texture2D *texture, const Rect& rect, bool rotated) setDirty(false); _flippedX = _flippedY = false; - + + //need reset if _texture is changed + _unflippedOffsetPositionFromCenter = Vec2::ZERO; + // default transform anchor: center setAnchorPoint(Vec2::ANCHOR_MIDDLE);