diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-30 12:35:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-30 12:35:32 +0300 |
commit | a2b7c84ae8eadf5983ee42091ce4e33315ca83ce (patch) | |
tree | 3e444d60fa524c59d578e2598ee2765125e7999d /source | |
parent | 7860fc953991983795fba6440364a255cab8dc18 (diff) |
Cleanup: unused arguments
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_mask.c | 1 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 8 |
2 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c index d0fa5213e33..6e0402fc6e0 100644 --- a/source/blender/editors/sculpt_paint/paint_mask.c +++ b/source/blender/editors/sculpt_paint/paint_mask.c @@ -146,7 +146,6 @@ static int mask_flood_fill_exec(bContext *C, wmOperator *op) PBVHNode **nodes; int totnode; bool multires; - Sculpt *sd = CTX_data_tool_settings(C)->sculpt; mode = RNA_enum_get(op->ptr, "mode"); value = RNA_float_get(op->ptr, "value"); diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index a1c53d6aad0..6ede631eb11 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -417,10 +417,7 @@ static void sculpt_undo_bmesh_restore_generic_task_cb( BKE_pbvh_node_mark_redraw(nodes[n]); } -static void sculpt_undo_bmesh_restore_generic(bContext *C, - SculptUndoNode *unode, - Object *ob, - SculptSession *ss) +static void sculpt_undo_bmesh_restore_generic(SculptUndoNode *unode, Object *ob, SculptSession *ss) { if (unode->applied) { BM_log_undo(ss->bm, ss->bm_log); @@ -434,7 +431,6 @@ static void sculpt_undo_bmesh_restore_generic(bContext *C, if (unode->type == SCULPT_UNDO_MASK) { int totnode; PBVHNode **nodes; - Sculpt *sd = CTX_data_tool_settings(C)->sculpt; BKE_pbvh_search_gather(ss->pbvh, NULL, NULL, &nodes, &totnode); @@ -611,7 +607,7 @@ static int sculpt_undo_bmesh_restore(bContext *C, return true; default: if (ss->bm_log) { - sculpt_undo_bmesh_restore_generic(C, unode, ob, ss); + sculpt_undo_bmesh_restore_generic(unode, ob, ss); return true; } break; |