diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-06 14:42:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-06 14:42:32 +0300 |
commit | 8d572e87648b95f95f28d1a9fa252571304f5e0b (patch) | |
tree | 1a420db88d92a264782f84d09b777fe302b8ab5e /source/blender/editors/sculpt_paint/sculpt.c | |
parent | 4d86a432da19826ca28f26af30b24edf18e53553 (diff) |
Cleanup: unused var
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); } |