mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Cleanup
This commit is contained in:
parent
413fb4bfbe
commit
21282fe62e
2 changed files with 5 additions and 5 deletions
|
@ -508,14 +508,13 @@ std::string CExportNel::getName (MtlBase& mtl)
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Get the node name
|
// Get the node name
|
||||||
std::string CExportNel::getName (INode& mtl)
|
std::string CExportNel::getName(INode& node)
|
||||||
{
|
{
|
||||||
// Return its name
|
// Return its name
|
||||||
TCHAR* name=mtl.GetName();
|
MCHAR* name = node.GetName();
|
||||||
return std::string (name);
|
return std::string(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Get the NEL node name
|
// Get the NEL node name
|
||||||
|
|
|
@ -363,7 +363,8 @@ void CExportNel::buildSkeleton (std::vector<CBoneBase>& bonesArray, INode& node,
|
||||||
bonesArray.push_back (bone);
|
bonesArray.push_back (bone);
|
||||||
|
|
||||||
// **** Call on child
|
// **** 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);
|
buildSkeleton (bonesArray, *node.GetChildNode(children), mapBindPos, mapId, nameSet, time, ++idCount, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue