fixed read sprite

This commit is contained in:
2youyou2 2014-06-12 20:16:39 +08:00
parent 8174481575
commit f09b1863a9
1 changed files with 1 additions and 1 deletions

View File

@ -371,11 +371,11 @@ Node* NodeReader::loadSprite(const rapidjson::Value& json)
SpriteFrame* spriteFrame = SpriteFrameCache::getInstance()->getSpriteFrameByName(path);
if(!spriteFrame)
{
path = _jsonPath + path;
sprite = Sprite::create(path);
}
else
{
path = _jsonPath + path;
sprite = Sprite::createWithSpriteFrame(spriteFrame);
}