Merge pull request #300 from lvlonggame/v3

fix bug: create single node recursively.
This commit is contained in:
XiaoYang 2015-04-14 09:10:24 +08:00
commit 37dc4c33d9
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
}
for(const auto& it : nodedata->children)
{
createNode(it,node, matrialdatas, singleSprite);
createNode(it,node, matrialdatas, nodedata->children.size() == 1);
}
}