correction to report message

This commit is contained in:
Campbell Barton
2011-12-12 20:57:10 +00:00
parent 7abc66ba42
commit 01478a3743

View 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];