diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-13 18:18:41 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-13 18:18:41 +0300 |
commit | b8dac71bdab7bd562ca13eb8c4af2f966533067b (patch) | |
tree | a5ad1039b7065fef5e2e045c95743633ad241573 /source/blender/editors/space_view3d/drawobject.c | |
parent | b3d8cbd1130578e440966449d0bec995c7764a18 (diff) |
2.5
- restored three more C files: editlattice, editkey
and editgroup
- editmode lattice working, (mouse select works)
- accidentally removed yesterday 3d cursor drawing
- removed global editLatt entirely now.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index dfb4e0dea55..0044002d078 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -114,7 +114,6 @@ /* pretty stupid */ -/* extern Lattice *editLatt; already in BKE_lattice.h */ /* editcurve.c */ extern ListBase editNurb; /* editmball.c */ @@ -1083,11 +1082,13 @@ static void lattice_draw_verts(Lattice *lt, DispList *dl, short sel) void lattice_foreachScreenVert(ViewContext *vc, void (*func)(void *userData, BPoint *bp, int x, int y), void *userData) { - BPoint *bp = editLatt->def; - DispList *dl = find_displist(&vc->obedit->disp, DL_VERTS); + Object *obedit= vc->obedit; + Lattice *lt= obedit->data; + BPoint *bp = lt->editlatt->def; + DispList *dl = find_displist(&obedit->disp, DL_VERTS); float *co = dl?dl->verts:NULL; float pmat[4][4], vmat[4][4]; - int i, N = editLatt->pntsu*editLatt->pntsv*editLatt->pntsw; + int i, N = lt->editlatt->pntsu*lt->editlatt->pntsv*lt->editlatt->pntsw; short s[2]; view3d_get_object_project_mat(vc->v3d, vc->obedit, pmat, vmat); |