Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-12-12 18:52:00 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-12-12 18:52:00 +0400
commit237f6fc3b373a7ddea0b030a5715a2a84ba02f41 (patch)
treeeaf3db1fe2050f825ab413964ce07bbe2d72186f /source/blender/editors/mesh
parent4a364d23629c8dcc66f7a8478153cb4b86fa562f (diff)
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.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index df81f80ade8..04a24951659 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -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;