[Bf-blender-cvs] [9579e3eef23] master: Cleanup: remove unused parameter in calc_brush_local_mat.

Jeroen Bakker noreply at git.blender.org
Tue Dec 13 15:53:13 CET 2022


Commit: 9579e3eef2340a336329b8670e9b3923f7d75ce4
Author: Jeroen Bakker
Date:   Tue Dec 13 15:52:50 2022 +0100
Branches: master
https://developer.blender.org/rB9579e3eef2340a336329b8670e9b3923f7d75ce4

Cleanup: remove unused parameter in calc_brush_local_mat.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.cc b/source/blender/editors/sculpt_paint/sculpt.cc
index 98cb6130f87..416f394e8ee 100644
--- a/source/blender/editors/sculpt_paint/sculpt.cc
+++ b/source/blender/editors/sculpt_paint/sculpt.cc
@@ -2862,10 +2862,7 @@ static void calc_local_y(ViewContext *vc, const float center[3], float y[3])
   mul_m4_v3(ob->world_to_object, y);
 }
 
-static void calc_brush_local_mat(const Brush *brush,
-                                 const MTex *mtex,
-                                 Object *ob,
-                                 float local_mat[4][4])
+static void calc_brush_local_mat(const MTex *mtex, Object *ob, float local_mat[4][4])
 {
   const StrokeCache *cache = ob->sculpt->cache;
   float tmat[4][4];
@@ -2938,7 +2935,7 @@ static void update_brush_local_mat(Sculpt *sd, Object *ob)
   if (cache->mirror_symmetry_pass == 0 && cache->radial_symmetry_pass == 0) {
     const Brush *brush = BKE_paint_brush(&sd->paint);
     const MTex *mask_tex = BKE_brush_mask_texture_get(brush, OB_MODE_SCULPT);
-    calc_brush_local_mat(brush, mask_tex, ob, cache->brush_local_mat);
+    calc_brush_local_mat(mask_tex, ob, cache->brush_local_mat);
   }
 }



More information about the Bf-blender-cvs mailing list