File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
decompile/General/AltMods Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ void FastAnim_Decompress(struct ModelAnim* ma, u_int* pCmd)
3737
3838 struct Mempack * ptrMempack = sdata -> PtrMempack ;
3939
40- // TODO: Only Turn animation works
41- if (ma -> name [0 ] != 't' )
42- return ;
43-
4440 printf ("Run Animation: %s\n" , ma -> name );
4541
4642 u_int pCmd_backup = pCmd ;
@@ -55,7 +51,11 @@ void FastAnim_Decompress(struct ModelAnim* ma, u_int* pCmd)
5551
5652 char * firstFrame = MODELANIM_GETFRAME (ma );
5753 struct ModelFrame * mf = & firstFrame [ma -> frameSize * i ];
58-
54+
55+ // TEMPORARY workaround, will break some anims
56+ if (mf -> vertexOffset != 0x1C )
57+ mf -> vertexOffset = 0x1C ;
58+
5959 // may be compressed vertData, or uncompresed
6060 char * vertData = MODELFRAME_GETVERT (mf );
6161
You can’t perform that action at this time.
0 commit comments