diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-01 06:03:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-01 06:03:22 +0300 |
commit | 38bbd783b38d0537c8056414a933ef75cd41f941 (patch) | |
tree | ffaa767e7cc21a566833c8956df2ab671a9fc110 /source/blender | |
parent | 039bfe0e059194a0ef51f2ea8239b998b036be07 (diff) |
Cleanup: undeclared functions (make static)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index a753b7b4c26..fb7ae4d017d 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -198,7 +198,7 @@ void SCULPT_vertex_normal_get(SculptSession *ss, int index, float no[3]) } } -const float *SCULPT_vertex_persistent_co_get(SculptSession *ss, int index) +static const float *sculpt_vertex_persistent_co_get(SculptSession *ss, int index) { if (ss->persistent_base) { return ss->persistent_base[index].co; @@ -206,7 +206,7 @@ const float *SCULPT_vertex_persistent_co_get(SculptSession *ss, int index) return SCULPT_vertex_co_get(ss, index); } -void SCULPT_vertex_persistent_normal_get(SculptSession *ss, int index, float no[3]) +static void sculpt_vertex_persistent_normal_get(SculptSession *ss, int index, float no[3]) { if (ss->persistent_base) { copy_v3_v3(no, ss->persistent_base[index].no); @@ -4213,9 +4213,9 @@ static void do_layer_brush_task_cb_ex(void *__restrict userdata, float normal[3]; if (use_persistent_base) { - SCULPT_vertex_persistent_normal_get(ss, vi, normal); + sculpt_vertex_persistent_normal_get(ss, vi, normal); mul_v3_fl(normal, brush->height); - madd_v3_v3v3fl(final_co, SCULPT_vertex_persistent_co_get(ss, vi), normal, *disp_factor); + madd_v3_v3v3fl(final_co, sculpt_vertex_persistent_co_get(ss, vi), normal, *disp_factor); } else { normal_short_to_float_v3(normal, orig_data.no); @@ -8342,7 +8342,7 @@ static bool SCULPT_connected_components_floodfill_cb( return true; } -void SCULPT_connected_components_ensure(Object *ob) +static void sculpt_connected_components_ensure(Object *ob) { SculptSession *ss = ob->sculpt; @@ -8386,7 +8386,7 @@ void SCULPT_fake_neighbors_ensure(Sculpt *sd, Object *ob, const float max_dist) return; } - SCULPT_connected_components_ensure(ob); + sculpt_connected_components_ensure(ob); SCULPT_fake_neighbor_init(ss, max_dist); for (int i = 0; i < totvert; i++) { |