Modify the parsing

This commit is contained in:
liuliang 2014-08-20 13:53:15 +08:00
parent a27a420a91
commit df272ee7f5
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
{
if(it->bones.size() > 0 || singleSprite)
{
auto subMeshState = SubMeshState::create(it->id);
auto subMeshState = SubMeshState::create(nodedata->id);
if(subMeshState)
{
_subMeshStates.pushBack(subMeshState);
@ -333,7 +333,7 @@ void Sprite3D::createNode(NodeData* nodedata, Node* root, const MaterialDatas& m
auto sprite = new Sprite3D();
if (sprite)
{
auto subMeshState = SubMeshState::create(it->id);
auto subMeshState = SubMeshState::create(nodedata->id);
subMeshState->setSubMesh(getSubMesh(it->subMeshId));
if (it->matrialId == "" && matrialdatas.materials.size())
{