correction to report message
authorCampbell Barton <ideasman42@gmail.com>
Mon, 12 Dec 2011 20:57:10 +0000 (20:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 12 Dec 2011 20:57:10 +0000 (20:57 +0000)
source/blender/editors/mesh/editmesh_tools.c

index 04a249516593d660d3936b67ec80af229f4f3472..2e5fc51533081b9d97f5457eefe175599e0d3bb9 100644 (file)
@@ -7510,12 +7510,11 @@ static int select_axis_exec(bContext *C, wmOperator *op)
        EditSelection *ese = em->selected.last;
 
 
-       if(ese==NULL || ese->type!=EDITVERT) {
-               BKE_report(op->reports, RPT_WARNING, "This operator requires selected vertex");
+       if (ese==NULL || ese->type != EDITVERT) {
+               BKE_report(op->reports, RPT_WARNING, "This operator requires an active vertex (last selected)");
                return OPERATOR_CANCELLED;
        }
-
-       if(ese->type==EDITVERT) {
+       else {
                EditVert *ev;
                EditVert *act_vert= (EditVert*)ese->data;
                float value= act_vert->co[axis];