From: divverent Date: Tue, 19 Oct 2010 06:24:42 +0000 (+0000) Subject: make getsurface* not animate vertices if the model is not animated X-Git-Tag: xonotic-v0.1.0preview~56^2~65 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c48e2d6fb65f8305fcf381b9da0fc3ab4f19a58;p=xonotic%2Fdarkplaces.git make getsurface* not animate vertices if the model is not animated git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10552 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index 30b790f1..13672c5d 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -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;