Fix iw3 xanim not using different structs for dynamic indices

This commit is contained in:
Jan 2021-04-15 11:45:17 +02:00
parent 4e05bc6b44
commit 742cb596e6

View File

@ -177,15 +177,15 @@ namespace IW3
float time; float time;
}; };
union XAnimDynamicIndices typedef unsigned char ByteVec[3];
typedef tdef_align(4) unsigned short UShortVec[3];
union XAnimDynamicIndicesTrans
{ {
char _1[1]; char _1[1];
uint16_t _2[1]; uint16_t _2[1];
}; };
typedef unsigned char ByteVec[3];
typedef tdef_align(4) unsigned short UShortVec[3];
union XAnimDynamicFrames union XAnimDynamicFrames
{ {
ByteVec* _1; ByteVec* _1;
@ -197,7 +197,7 @@ namespace IW3
float mins[3]; float mins[3];
float size[3]; float size[3];
XAnimDynamicFrames frames; XAnimDynamicFrames frames;
XAnimDynamicIndices indices; XAnimDynamicIndicesTrans indices;
}; };
union XAnimPartTransData union XAnimPartTransData
@ -215,10 +215,16 @@ namespace IW3
typedef tdef_align(4) short XQuat[2]; typedef tdef_align(4) short XQuat[2];
union XAnimDynamicIndicesQuat
{
char _1[1];
uint16_t _2[1];
};
struct type_align(4) XAnimDeltaPartQuatDataFrames struct type_align(4) XAnimDeltaPartQuatDataFrames
{ {
XQuat *frames; XQuat *frames;
XAnimDynamicIndices indices; XAnimDynamicIndicesQuat indices;
}; };
union XAnimDeltaPartQuatData union XAnimDeltaPartQuatData