mirror of https://github.com/axmolengine/axmol.git
Merge pull request #300 from lvlonggame/v3
fix bug: create single node recursively.
This commit is contained in:
commit
37dc4c33d9
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue