[Bf-blender-cvs] [bec86c5d15d] master: Cleanup: remove unused arguments

Campbell Barton noreply at git.blender.org
Sun Jan 15 13:53:29 CET 2023


Commit: bec86c5d15deb8e27ceaf980e776b6a9b23cfaf8
Author: Campbell Barton
Date:   Sun Jan 15 23:52:50 2023 +1100
Branches: master
https://developer.blender.org/rBbec86c5d15deb8e27ceaf980e776b6a9b23cfaf8

Cleanup: remove unused arguments

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

M	source/blender/editors/sculpt_paint/paint_image.cc

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

diff --git a/source/blender/editors/sculpt_paint/paint_image.cc b/source/blender/editors/sculpt_paint/paint_image.cc
index d5efb4fe9c6..bedf7b588b2 100644
--- a/source/blender/editors/sculpt_paint/paint_image.cc
+++ b/source/blender/editors/sculpt_paint/paint_image.cc
@@ -759,7 +759,7 @@ void PAINT_OT_sample_color(wmOperatorType *ot)
 
 /******************** texture paint toggle operator ********************/
 
-static void paint_init_pivot_mesh(Object *ob, Scene *scene, float location[3])
+static void paint_init_pivot_mesh(Object *ob, float location[3])
 {
   const Mesh *me_eval = BKE_object_get_evaluated_mesh(ob);
   if (!me_eval) {
@@ -776,7 +776,7 @@ static void paint_init_pivot_mesh(Object *ob, Scene *scene, float location[3])
   interp_v3_v3v3(location, min, max, 0.5f);
 }
 
-static void paint_init_pivot_curves(Object *ob, Scene *scene, float location[3])
+static void paint_init_pivot_curves(Object *ob, float location[3])
 {
   const BoundBox *bbox = BKE_object_boundbox_get(ob);
   interp_v3_v3v3(location, bbox->vec[0], bbox->vec[6], 0.5f);
@@ -789,10 +789,10 @@ void paint_init_pivot(Object *ob, Scene *scene)
 
   switch (ob->type) {
     case OB_MESH:
-      paint_init_pivot_mesh(ob, scene, location);
+      paint_init_pivot_mesh(ob, location);
       break;
     case OB_CURVES:
-      paint_init_pivot_curves(ob, scene, location);
+      paint_init_pivot_curves(ob, location);
       break;
     default:
       BLI_assert_unreachable();



More information about the Bf-blender-cvs mailing list