mirror of https://github.com/axmolengine/axmol.git
fix bug: create single node Recursively.
This commit is contained in:
parent
e731b7792a
commit
57a44194f4
|
@ -573,7 +573,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
|
||||||
}
|
}
|
||||||
for(const auto& it : nodedata->children)
|
for(const auto& it : nodedata->children)
|
||||||
{
|
{
|
||||||
createNode(it,node, matrialdatas, singleSprite);
|
createNode(it,node, matrialdatas, nodedata->children.size() == 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue