diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 3f7b44361c1..85c6eecbd4d 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -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);