Merge pull request #2368 from dumganhar/iss2040-ccb-getScale

fixed #2040: Getting scale property from sub-ccb node may trigger an assert of 'CCAssert( m_fScaleX == m_fScaleY, "CCNode#scale. ScaleX != ScaleY. Don't know which one to return");'.
This commit is contained in:
James Chen 2013-04-14 19:20:36 -07:00
commit c7631d5343
1 changed files with 2 additions and 1 deletions

View File

@ -630,7 +630,8 @@ CCNode * CCBReader::readNodeGraph(CCNode * pParent) {
CCNode *embeddedNode = ccbFileNode->getCCBFileNode();
embeddedNode->setPosition(ccbFileNode->getPosition());
embeddedNode->setRotation(ccbFileNode->getRotation());
embeddedNode->setScale(ccbFileNode->getScale());
embeddedNode->setScaleX(ccbFileNode->getScaleX());
embeddedNode->setScaleY(ccbFileNode->getScaleY());
embeddedNode->setTag(ccbFileNode->getTag());
embeddedNode->setVisible(true);
embeddedNode->ignoreAnchorPointForPosition(ccbFileNode->isIgnoreAnchorPointForPosition());