From ea2d6fe0d082b9069adfd72b704560937df3d855 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 14 Jan 2009 12:26:45 +0000 Subject: 2.5 Another one back: editcurve.c - removed global editNurb everywhere (cu->editnurb now has listbase with edit data) - also added 'active bpoint' and 'active nurb' in Curve struct - editmode in/out works, mouse/border select works --- source/blender/editors/space_view3d/drawobject.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_view3d/drawobject.c') diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 0044002d078..11a6014d03d 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -114,8 +114,6 @@ /* pretty stupid */ -/* editcurve.c */ -extern ListBase editNurb; /* editmball.c */ extern ListBase editelems; @@ -1301,6 +1299,7 @@ void mesh_foreachScreenFace(ViewContext *vc, void (*func)(void *userData, EditFa void nurbs_foreachScreenVert(ViewContext *vc, void (*func)(void *userData, Nurb *nu, BPoint *bp, BezTriple *bezt, int beztindex, int x, int y), void *userData) { + Curve *cu= vc->obedit->data; float pmat[4][4], vmat[4][4]; short s[2]; Nurb *nu; @@ -1308,7 +1307,7 @@ void nurbs_foreachScreenVert(ViewContext *vc, void (*func)(void *userData, Nurb view3d_get_object_project_mat(vc->v3d, vc->obedit, pmat, vmat); - for (nu= editNurb.first; nu; nu=nu->next) { + for (nu= cu->editnurb->first; nu; nu=nu->next) { if((nu->type & 7)==CU_BEZIER) { for (i=0; ipntsu; i++) { BezTriple *bezt = &nu->bezt[i]; -- cgit v1.2.3