From 0c48e2d6fb65f8305fcf381b9da0fc3ab4f19a58 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 19 Oct 2010 06:24:42 +0000 Subject: [PATCH] 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 --- prvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2