diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-24 07:59:52 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-24 07:59:52 +0300 |
commit | 4dd78dcbdfdfdf1dd9acf028506ad65fb22c1de1 (patch) | |
tree | b01039668a0cc12e3ae848ae016e355b06b971e1 /source/blender/editors/object/object_lattice.c | |
parent | 1c4599522c832abf179714a6369f0e93acc9e685 (diff) |
Made select operator return FINISHED only when it did something (only PASSTHROUGH otherwise)
Diffstat (limited to 'source/blender/editors/object/object_lattice.c')
-rw-r--r-- | source/blender/editors/object/object_lattice.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_lattice.c b/source/blender/editors/object/object_lattice.c index b49c1eb5902..3f27ea407a2 100644 --- a/source/blender/editors/object/object_lattice.c +++ b/source/blender/editors/object/object_lattice.c @@ -298,7 +298,7 @@ static BPoint *findnearestLattvert(ViewContext *vc, short mval[2], int sel) return data.bp; } -void mouse_lattice(bContext *C, short mval[2], int extend) +int mouse_lattice(bContext *C, short mval[2], int extend) { ViewContext vc; BPoint *bp= NULL; @@ -315,7 +315,11 @@ void mouse_lattice(bContext *C, short mval[2], int extend) bp->f1 ^= SELECT; /* swap */ WM_event_add_notifier(C, NC_GEOM|ND_SELECT, vc.obedit->data); + + return 1; } + + return 0; } /******************************** Undo *************************/ |