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:
authorCampbell Barton <ideasman42@gmail.com>2011-12-13 00:57:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-13 00:57:10 +0400
commit01478a3743f1d1fe3d641ff498953af027ca2e60 (patch)
tree0f397ca3a65e297ed97869160714cea235f24a70 /source/blender
parent7abc66ba4232a1718d5eb67313f600ed5d77956f (diff)
correction to report message
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 04a24951659..2e5fc515330 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -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];