load attached sprite from cache

This commit is contained in:
yangxiao 2014-10-24 15:52:24 +08:00
parent e5ac916a17
commit f878533f85
1 changed files with 8 additions and 0 deletions

View File

@ -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++) { for (ssize_t i = 0; i < _meshes.size(); i++) {
_meshes.at(i)->setGLProgramState(spritedata->glProgramStates.at(i)); _meshes.at(i)->setGLProgramState(spritedata->glProgramStates.at(i));
} }