Fix #29599: Side of Active tool not working in Faces/Edges

Added warning message if there's no last selected vertex in the selection stack.
This commit is contained in:
2011-12-12 14:52:00 +00:00
parent 4a364d2362
commit 237f6fc3b3

View File

@@ -7510,8 +7510,10 @@ static int select_axis_exec(bContext *C, wmOperator *op)
EditSelection *ese = em->selected.last;
if(ese==NULL)
if(ese==NULL || ese->type!=EDITVERT) {
BKE_report(op->reports, RPT_WARNING, "This operator requires selected vertex");
return OPERATOR_CANCELLED;
}
if(ese->type==EDITVERT) {
EditVert *ev;