|
|
@ -55,8 +55,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
parent = NULL;
|
|
|
|
parent = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
boneTrafo = NULL;
|
|
|
|
isBone = false;
|
|
|
|
boneIndex = -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void post(NIFFile *nif)
|
|
|
|
void post(NIFFile *nif)
|
|
|
@ -69,27 +68,11 @@ public:
|
|
|
|
// NiNodes (or types derived from NiNodes) can be parents.
|
|
|
|
// NiNodes (or types derived from NiNodes) can be parents.
|
|
|
|
NiNode *parent;
|
|
|
|
NiNode *parent;
|
|
|
|
|
|
|
|
|
|
|
|
// Bone transformation. If set, node is a part of a skeleton.
|
|
|
|
bool isBone;
|
|
|
|
const Transformation *boneTrafo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Bone weight info, from NiSkinData
|
|
|
|
void setBone()
|
|
|
|
const NiSkinData::BoneInfo *boneInfo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Bone index. If -1, this node is either not a bone, or if
|
|
|
|
|
|
|
|
// boneTrafo is set it is the root bone in the skeleton.
|
|
|
|
|
|
|
|
short boneIndex;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void makeRootBone(const Transformation *tr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
boneTrafo = tr;
|
|
|
|
|
|
|
|
boneIndex = -1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void makeBone(short ind, const NiSkinData::BoneInfo &bi)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
boneInfo = &bi;
|
|
|
|
isBone = true;
|
|
|
|
boneTrafo = &bi.trafo;
|
|
|
|
|
|
|
|
boneIndex = ind;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|