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~101 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=f587bae6b423899b8b124e33132d332fce48de3f;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 ::stable-branch::merge=0c48e2d6fb65f8305fcf381b9da0fc3ab4f19a58 --- diff --git a/prvm_cmds.c b/prvm_cmds.c index dd3e8d4e..e799ac43 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;