]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
IQM loading animation frames fix
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Apr 2010 07:38:54 +0000 (07:38 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Apr 2010 07:38:54 +0000 (07:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10076 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c

index d11bdac87780b9f565e95a5459df56662c655573..f0e9a7c33f90b68f77cc61375250e842da86992d 100644 (file)
@@ -3211,7 +3211,7 @@ void Mod_INTERQUAKEMODEL_Load(dp_model_t *mod, void *buffer, void *bufferend)
 
        loadmodel->numframes = header->num_anims;
        loadmodel->num_bones = header->num_joints;
-       loadmodel->num_poses = loadmodel->numframes;
+       loadmodel->num_poses = header->num_frames;
        loadmodel->nummodelsurfaces = loadmodel->num_surfaces = header->num_meshes;
        loadmodel->num_textures = loadmodel->num_surfaces * loadmodel->numskins;
        loadmodel->num_texturesperskin = loadmodel->num_surfaces;