fix access of pointer before its assigned

This commit is contained in:
Ken Hughes 2005-10-26 00:54:53 +00:00
parent ded4709a9d
commit b970e55df2

@ -3589,9 +3589,9 @@ void draw_object(Base *base)
break;
case OB_CURVE:
case OB_SURF:
cu= ob->data;
/* still needed for curves hidden in other layers. depgraph doesnt handle that yet */
if (cu->disp.first==NULL) makeDispListCurveTypes(ob, 0);
cu= ob->data;
if(ob==G.obedit) {
drawnurb(ob, editNurb.first, dt);