create model

This commit is contained in:
yangxiao 2014-08-16 14:52:44 +08:00
parent 8a5bbabe21
commit a11ac316bf
1 changed files with 7 additions and 0 deletions

View File

@ -399,6 +399,13 @@ bool Bundle3D::loadNodes(NodeDatas& nodedatas)
}
}
nodedatas.skeleton.push_back(nodeDatas[skinData.rootBoneIndex]);
auto modelnode = new ModelNodeData();
modelnode->matrialId = "";
modelnode->subMeshId = "";
modelnode->id = "";
modelnode->bones = skinData.skinBoneNames;
modelnode->invBindPose = skinData.inverseBindPoseMatrices;
nodedatas.nodes.push_back(modelnode);
}
else
{