]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_lerpanim.c
forgot to remove #include "net_wipx.h"
[xonotic/darkplaces.git] / r_lerpanim.c
index 83c2b432ef3870a4b9609cb32f18cad6409ef2d2..753e4af25fe51c7269174cb1d30cad83af92fd73 100644 (file)
@@ -10,6 +10,10 @@ void R_LerpAnimation(entity_render_t *r)
        double sublerp, lerp, d;
        animscene_t *scene;
        frameblend_t *blend;
+
+       if (!r->model)
+               return;
+
        blend = r->frameblend;
 
        numframes = r->model->numframes;
@@ -155,6 +159,5 @@ void R_LerpAnimation(entity_render_t *r)
                        FRAMEBLENDINSERT
                }
        }
-       //Con_Printf("Lerp: %i:%f %i:%f %i:%f %i:%f\n", blend[0].frame, blend[0].lerp, blend[1].frame, blend[1].lerp, blend[2].frame, blend[2].lerp, blend[3].frame, blend[3].lerp);
 }