|
|
@ -272,7 +272,7 @@ class NiSkinData : public Record
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
struct BoneTrafo
|
|
|
|
struct BoneTrafo
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ogre::Matrix3 rotation; // Rotation offset from bone?
|
|
|
|
Ogre::Matrix3 rotationScale; // Rotation offset from bone, non-uniform scale
|
|
|
|
Ogre::Vector3 trans; // Translation
|
|
|
|
Ogre::Vector3 trans; // Translation
|
|
|
|
float scale; // Probably scale (always 1)
|
|
|
|
float scale; // Probably scale (always 1)
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -295,7 +295,7 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
void read(NIFStream *nif)
|
|
|
|
void read(NIFStream *nif)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
trafo.rotation = nif->getMatrix3();
|
|
|
|
trafo.rotationScale = nif->getMatrix3();
|
|
|
|
trafo.trans = nif->getVector3();
|
|
|
|
trafo.trans = nif->getVector3();
|
|
|
|
trafo.scale = nif->getFloat();
|
|
|
|
trafo.scale = nif->getFloat();
|
|
|
|
|
|
|
|
|
|
|
@ -307,7 +307,7 @@ public:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BoneInfo &bi = bones[i];
|
|
|
|
BoneInfo &bi = bones[i];
|
|
|
|
|
|
|
|
|
|
|
|
bi.trafo.rotation = nif->getMatrix3();
|
|
|
|
bi.trafo.rotationScale = nif->getMatrix3();
|
|
|
|
bi.trafo.trans = nif->getVector3();
|
|
|
|
bi.trafo.trans = nif->getVector3();
|
|
|
|
bi.trafo.scale = nif->getFloat();
|
|
|
|
bi.trafo.scale = nif->getFloat();
|
|
|
|
bi.unknown = nif->getVector4();
|
|
|
|
bi.unknown = nif->getVector4();
|
|
|
|