From 8d572e87648b95f95f28d1a9fa252571304f5e0b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 6 Mar 2018 22:42:32 +1100 Subject: Cleanup: unused var --- source/blender/editors/sculpt_paint/sculpt.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 156ab649849..7de3792a222 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5790,7 +5790,6 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op) Object *ob = CTX_data_active_object(C); const int mode_flag = OB_MODE_SCULPT; const bool is_mode_set = (ob->mode & mode_flag) != 0; - Mesh *me; if (!is_mode_set) { if (!ED_object_mode_compat_set(C, ob, mode_flag, op->reports)) { @@ -5798,8 +5797,6 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op) } } - me = BKE_mesh_from_object(ob); - if (is_mode_set) { ED_object_sculptmode_exit_ex(scene, ob); } -- cgit v1.2.3