hg/feature/cdb-packed
kaetemi 10 years ago
parent f49e9c5df1
commit 9061eb8389

@ -508,14 +508,13 @@ std::string CExportNel::getName (MtlBase& mtl)
// --------------------------------------------------
// Get the node name
std::string CExportNel::getName (INode& mtl)
std::string CExportNel::getName(INode& node)
{
// Return its name
TCHAR* name=mtl.GetName();
return std::string (name);
MCHAR* name = node.GetName();
return std::string(name);
}
// --------------------------------------------------
// Get the NEL node name

@ -363,7 +363,8 @@ void CExportNel::buildSkeleton (std::vector<CBoneBase>& bonesArray, INode& node,
bonesArray.push_back (bone);
// **** Call on child
for (int children=0; children<node.NumberOfChildren(); children++)
const int numChildren = node.NumberOfChildren();
for (int children=0; children<numChildren; children++)
buildSkeleton (bonesArray, *node.GetChildNode(children), mapBindPos, mapId, nameSet, time, ++idCount, id);
}

Loading…
Cancel
Save