mirror of https://github.com/axmolengine/axmol.git
Merge branch 'patch-1' of https://github.com/zhanghaojie/cocos2d-x into iss2054-s9sp-anchorpoint-ccb
This commit is contained in:
commit
b228a13218
|
@ -17,7 +17,7 @@ NS_CC_EXT_BEGIN
|
|||
|
||||
void CCScale9SpriteLoader::onHandlePropTypeSpriteFrame(CCNode * pNode, CCNode * pParent, const char * pPropertyName, CCSpriteFrame * pCCSpriteFrame, CCBReader * pCCBReader) {
|
||||
if(strcmp(pPropertyName, PROPERTY_SPRITEFRAME) == 0) {
|
||||
((CCScale9Sprite *)pNode)->initWithSpriteFrame(pCCSpriteFrame);
|
||||
((CCScale9Sprite *)pNode)->setSpriteFrame(pCCSpriteFrame);
|
||||
} else {
|
||||
CCNodeLoader::onHandlePropTypeSpriteFrame(pNode, pParent, pPropertyName, pCCSpriteFrame, pCCBReader);
|
||||
}
|
||||
|
@ -72,4 +72,4 @@ void CCScale9SpriteLoader::onHandlePropTypeFloat(CCNode * pNode, CCNode * pParen
|
|||
}
|
||||
}
|
||||
|
||||
NS_CC_EXT_END
|
||||
NS_CC_EXT_END
|
||||
|
|
Loading…
Reference in New Issue