diff options
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r-- | source/blender/src/drawmesh.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c index 2ef2908cf36..a4041dc6d4b 100644 --- a/source/blender/src/drawmesh.c +++ b/source/blender/src/drawmesh.c @@ -896,13 +896,12 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt) if(mesh_uses_displist(me) && editing==0) { DispList *dl= find_displist(&me->disp, DL_MESH); - DispListMesh *dlm= dl->mesh; - - totface= dlm->totface; - + DispListMesh *dlm= NULL; + if (!dl) totface= 0; else { + dlm = dl->mesh; totface= dlm->totface; mvert= dlm->mvert; mface= dlm->mface; |