Skip to content

BSFaceGenNiNode::SkinAllGeometry_1403d87b0 on 1.5.97

DaymareOn edited this page Mar 13, 2023 · 2 revisions

This method calls SkinSingleGeometry for all TriShape children of the BSFaceGenNiNode.

void BSFaceGenNiNode::SkinAllGeometry(BSFaceGenNiNode *this,BSGeometry *a_BSGeometry,char unk)
{
BSTriShape *child_as_trishape;
uint childIndexPlus1;
ulonglong childIndex;
NiAVObject *child;

if ((a_BSGeometry != (BSGeometry *)0x0) && (childIndex = 0, (this->children)._freeIdx != 0)) {
do {
child = (this->children)._data[childIndex]._ptr;
if ((child != (NiAVObject *)0x0) &&
(child_as_trishape = (BSTriShape *)(*(code *)child->vtable->AsTriShape)(),
child_as_trishape != (BSTriShape *)0x0)) {
SkinSingleGeometry(this,a_BSGeometry,child_as_trishape);
}
childIndexPlus1 = (int)childIndex + 1;
childIndex = (ulonglong)childIndexPlus1;
} while (childIndexPlus1 < (this->children)._freeIdx);
}
return;
}