]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 22 Oct 2010 21:59:30 +0000 (23:59 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10552 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0c48e2d6fb65f8305fcf381b9da0fc3ab4f19a58

prvm_cmds.c

index dd3e8d4ea7b1a9cf5ed464bc4f4ab82471484fd0..e799ac43ce4ae352216193fe43d6daa187655c66 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;