mirror of https://github.com/axmolengine/axmol.git
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:
commit
c7631d5343
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue