Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-01-14 15:26:45 +0300
committerTon Roosendaal <ton@blender.org>2009-01-14 15:26:45 +0300
commitea2d6fe0d082b9069adfd72b704560937df3d855 (patch)
treedf06dc078d4852c91b988e2d91c2e2808fb86491 /source/blender/editors/space_view3d/drawobject.c
parent07e85b265de672a4018cdefe14082576d92a763c (diff)
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
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c5
1 files changed, 2 insertions, 3 deletions
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; i<nu->pntsu; i++) {
BezTriple *bezt = &nu->bezt[i];