From: eihrul Date: Mon, 12 Apr 2010 07:38:54 +0000 (+0000) Subject: IQM loading animation frames fix X-Git-Tag: xonotic-v0.1.0preview~230^2~393 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8e7b8eb13cb7951196a0acb18e80199a0600472a;p=xonotic%2Fdarkplaces.git IQM loading animation frames fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10076 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index d11bdac8..f0e9a7c3 100644 --- a/model_alias.c +++ b/model_alias.c @@ -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;