[Bf-blender-cvs] [6a6ac502f26] master: Cleanup: unused arguments

Campbell Barton noreply at git.blender.org
Mon Sep 30 18:01:02 CEST 2019


Commit: 6a6ac502f2612f37c294692cee87ccf6875b2eb5
Author: Campbell Barton
Date:   Tue Oct 1 01:57:36 2019 +1000
Branches: master
https://developer.blender.org/rB6a6ac502f2612f37c294692cee87ccf6875b2eb5

Cleanup: unused arguments

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index a871fb66686..c3cb04514fe 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1934,9 +1934,7 @@ static void sculpt_clip(Sculpt *sd, SculptSession *ss, float co[3], const float
 
 static PBVHNode **sculpt_pbvh_gather_cursor_update(Object *ob,
                                                    Sculpt *sd,
-                                                   const Brush *brush,
                                                    bool use_original,
-                                                   float radius_scale,
                                                    int *r_totnode)
 {
   SculptSession *ss = ob->sculpt;
@@ -6549,7 +6547,6 @@ bool sculpt_cursor_geometry_info_update(bContext *C,
   }
 
   /* Sampled normal calculation */
-  const float radius_scale = 1.0f;
   float radius;
 
   /* Update cursor data in SculptSession */
@@ -6571,8 +6568,7 @@ bool sculpt_cursor_geometry_info_update(bContext *C,
   }
   ss->cursor_radius = radius;
 
-  PBVHNode **nodes = sculpt_pbvh_gather_cursor_update(
-      ob, sd, brush, original, radius_scale, &totnode);
+  PBVHNode **nodes = sculpt_pbvh_gather_cursor_update(ob, sd, original, &totnode);
 
   /* In case there are no nodes under the cursor, return the face normal */
   if (!totnode) {



More information about the Bf-blender-cvs mailing list