mirror of https://github.com/axmolengine/axmol.git
create model
This commit is contained in:
parent
8a5bbabe21
commit
a11ac316bf
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue