From a4cc2526b38dbc47d86ed37aa3f836b9e1a054fe Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 6 Jul 2003 20:18:42 +0000 Subject: [PATCH] - miencho (thanks) pointed me to a weak line in draw mesh solid call. it used a pointer, without checking its value. the calling code took care it never happened, nevertheless... added a comment there. --- source/blender/src/drawobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index a866e6cfa69..a890d6d9d69 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -1791,7 +1791,7 @@ static void drawmeshsolid(Object *ob, float *nors) if(ob->dtx & OB_DRAWWIRE) drawMeshWireExtra(ob); } - else { + else if(nors) { /* should never be zero, but is weak code... the displist system needs a make over (ton) */ start= 0; end= me->totface; set_buildvars(ob, &start, &end);