mirror of https://github.com/axmolengine/axmol.git
Merge pull request #149 from lvlonggame/v3
Fix bug: load sprite3D from cache, the attach node will be discarded.
This commit is contained in:
commit
01e2d62e90
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue