diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 08f12ec863..cb1d5e3bd4 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -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); } }