make getsurface* not animate vertices if the model is not animated
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Oct 2010 06:24:42 +0000 (06:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Oct 2010 06:24:42 +0000 (06:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10552 d7cf8633-e32d-0410-b094-e92efae38249

prvm_cmds.c

index 30b790f..13672c5 100644 (file)
@@ -6343,7 +6343,7 @@ void animatemodel(dp_model_t *model, prvm_edict_t *ed)
        skeleton_t *skeleton;
        int skeletonindex = -1;
        qboolean need = false;
-       if(!model->AnimateVertices)
+       if(!(model->surfmesh.isanimated && model->AnimateVertices))
        {
                animatemodel_cache.data_vertex3f = model->surfmesh.data_vertex3f;
                animatemodel_cache.data_svector3f = model->surfmesh.data_svector3f;