mirror of https://github.com/axmolengine/axmol.git
fixed CCSpriteLoader's flipX bug.
This commit is contained in:
parent
b4b9a1be2b
commit
d042e8557d
|
@ -21,7 +21,7 @@ void CCSpriteLoader::onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParen
|
|||
void CCSpriteLoader::onHandlePropTypeFlip(CCNode * pNode, CCNode * pParent, CCString * pPropertyName, bool * pFlip, CCBReader * pCCBReader) {
|
||||
if(pPropertyName->compare(PROPERTY_FLIP) == 0) {
|
||||
((CCSprite *)pNode)->setFlipX(pFlip[0]);
|
||||
((CCSprite *)pNode)->setFlipX(pFlip[1]);
|
||||
((CCSprite *)pNode)->setFlipY(pFlip[1]);
|
||||
} else {
|
||||
CCNodeLoader::onHandlePropTypeFlip(pNode, pParent, pPropertyName, pFlip, pCCBReader);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue