mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Fix iw3 xanim not using different structs for dynamic indices
This commit is contained in:
parent
4e05bc6b44
commit
742cb596e6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user