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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user