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/curve | |
parent | 1c4599522c832abf179714a6369f0e93acc9e685 (diff) |
Made select operator return FINISHED only when it did something (only PASSTHROUGH otherwise)
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 7801168dd83..e53b419c6ea 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -3055,7 +3055,7 @@ void CURVE_OT_make_segment(wmOperatorType *ot) /***************** pick select from 3d view **********************/ -void mouse_nurb(bContext *C, short mval[2], int extend) +int mouse_nurb(bContext *C, short mval[2], int extend) { Object *obedit= CTX_data_edit_object(C); Curve *cu= obedit->data; @@ -3111,12 +3111,15 @@ void mouse_nurb(bContext *C, short mval[2], int extend) } - } + if(nu!=get_actNurb(obedit)) + set_actNurb(obedit, nu); - WM_event_add_notifier(C, NC_GEOM|ND_SELECT, obedit->data); + WM_event_add_notifier(C, NC_GEOM|ND_SELECT, obedit->data); + + return 1; + } - if(nu!=get_actNurb(obedit)) - set_actNurb(obedit, nu); + return 0; } /******************** spin operator ***********************/ |