diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index d47de90238..a498d9b03e 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -92,6 +92,14 @@ bool Sprite3D::loadFromCache(const std::string& path) } } + for(const auto& it : spritedata->nodedatas->skeleton) + { + if(it) + { + createAttachSprite3DNode(it,*(spritedata->materialdatas)); + } + } + for (ssize_t i = 0; i < _meshes.size(); i++) { _meshes.at(i)->setGLProgramState(spritedata->glProgramStates.at(i)); }