diff options
author | Julian Eisel <julian@blender.org> | 2020-09-18 21:51:22 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-18 21:51:22 +0300 |
commit | 9ce1a04e2aa19a2746f0947bd8d8391f680cc90d (patch) | |
tree | a1398c7b3195d7ac0446902d9f123212bcc99e61 /source/blender/editors/sculpt_paint/sculpt_cloth.c | |
parent | 9d528381b552c37d53126f997c5e61979c3b20ba (diff) |
Cleanup: Resolve warnings
Unused variables, missing include for declaration, missing 'static'
specifier. Also rename function to match naming convention.
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_cloth.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_cloth.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_cloth.c b/source/blender/editors/sculpt_paint/sculpt_cloth.c index d8fedecc61c..3d0e5791f0d 100644 --- a/source/blender/editors/sculpt_paint/sculpt_cloth.c +++ b/source/blender/editors/sculpt_paint/sculpt_cloth.c @@ -873,7 +873,6 @@ static void cloth_brush_apply_brush_foces(Sculpt *sd, Object *ob, PBVHNode **nod /* Public functions. */ SculptClothSimulation *SCULPT_cloth_brush_simulation_create(SculptSession *ss, - Brush *brush, const float cloth_mass, const float cloth_damping, const bool use_collisions, @@ -993,7 +992,6 @@ void SCULPT_do_cloth_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode if (SCULPT_stroke_is_first_brush_step(ss->cache) || !ss->cache->cloth_sim) { ss->cache->cloth_sim = SCULPT_cloth_brush_simulation_create( ss, - brush, brush->cloth_mass, brush->cloth_damping, (brush->flag2 & BRUSH_CLOTH_USE_COLLISION), @@ -1355,7 +1353,6 @@ static int sculpt_cloth_filter_invoke(bContext *C, wmOperator *op, const wmEvent const bool use_collisions = RNA_boolean_get(op->ptr, "use_collisions"); ss->filter_cache->cloth_sim = SCULPT_cloth_brush_simulation_create( ss, - NULL, cloth_mass, cloth_damping, use_collisions, |