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
path: root/source
diff options
context:
space:
mode:
authorSergej Reich <sergej.reich@googlemail.com>2013-11-08 22:01:07 +0400
committerSergej Reich <sergej.reich@googlemail.com>2013-11-08 22:01:07 +0400
commit0d1a49936627f2885b058f23920490bc6ed7c282 (patch)
tree8c351c7e8606e41815cb0df26605dba85f280655 /source
parentb144f155799fc7438d3870fac824f287f80be738 (diff)
knife tool: Remove unused 'extend' variable
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 2e476da2558..de57d24640f 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -203,7 +203,7 @@ typedef struct KnifeTool_OpData {
} mode;
int prevmode;
- bool snap_midpoints, extend;
+ bool snap_midpoints;
bool ignore_edge_snapping;
bool ignore_vert_snapping;
@@ -2602,8 +2602,6 @@ static void knifetool_init(bContext *C, KnifeTool_OpData *kcd,
kcd->vthresh = KMAXDIST - 1;
kcd->ethresh = KMAXDIST;
- kcd->extend = true;
-
knife_recalc_projmat(kcd);
ED_region_tag_redraw(kcd->ar);
@@ -2821,10 +2819,6 @@ static int knifetool_modal(bContext *C, wmOperator *op, const wmEvent *event)
if (kcd->mode == MODE_DRAGGING) {
knife_add_cut(kcd);
- if (!kcd->extend) {
- knife_finish_cut(kcd);
- kcd->mode = MODE_IDLE;
- }
}
else if (kcd->mode != MODE_PANNING) {
knife_start_cut(kcd);