From b970e55df25b9f4bd79d6acce194c857df3403bb Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Wed, 26 Oct 2005 00:54:53 +0000 Subject: [PATCH] fix access of pointer before its assigned --- 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 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);