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>2012-04-07 16:37:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-07 16:37:15 +0400
commit8fa17c5362a09d023bda999d4595f1762e5f52b9 (patch)
tree6d380e3f336e2740a24eead833501384df658fdd /source/blender/editors/mesh/editmesh_slide.c
parent6482351ed9c3e022e02933709e4df1407a2ffbef (diff)
code cleanup: no functional changes
- memset(..., -1) is used incorrectly even though it worked: MOD_solidify.c - thanks Halley from IRC for noticing this. use fill_vn_i() instead. - quiet warnings in editmesh_slide.c - cleanup comments in bmesh and some other minor comment additions.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_slide.c')
-rw-r--r--source/blender/editors/mesh/editmesh_slide.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_slide.c b/source/blender/editors/mesh/editmesh_slide.c
index 764ec0d7cab..6e570080729 100644
--- a/source/blender/editors/mesh/editmesh_slide.c
+++ b/source/blender/editors/mesh/editmesh_slide.c
@@ -224,10 +224,10 @@ static void vtx_slide_confirm(bContext *C, wmOperator *op)
ED_region_tag_redraw(vso->active_region);
}
-static void vtx_slide_exit(const bContext *C, wmOperator *op) {
+static void vtx_slide_exit(const bContext *C, wmOperator *op)
+{
/* Fetch custom data */
VertexSlideOp *vso = op->customdata;
- BMEditMesh *em = BMEdit_FromObject(vso->obj);
/* Clean-up the custom data */
ED_region_draw_cb_exit(vso->active_region->type, vso->draw_handle);
@@ -258,7 +258,6 @@ static void vtx_slide_exit(const bContext *C, wmOperator *op) {
/* Clear the header */
ED_area_headerprint(CTX_wm_area(C), NULL);
-
}
static void vtx_slide_draw(const bContext *C, ARegion *UNUSED(ar), void *arg)
@@ -637,7 +636,7 @@ static int edbm_vert_slide_exec(bContext *C, wmOperator *op)
}
/* Is there a starting vertex ? */
- if (ese == NULL || ese->htype != BM_VERT && ese->htype != BM_EDGE) {
+ if ((ese == NULL) || (ese->htype != BM_VERT && ese->htype != BM_EDGE)) {
BKE_report(op->reports, RPT_ERROR_INVALID_INPUT, "Vertex Slide Error: Select a (single) vertex");
return OPERATOR_CANCELLED;
}