[Bf-blender-cvs] [0230148fb7e] master: Cleanup: avoid unnecessary brush radius test in mask expand

Brecht Van Lommel noreply at git.blender.org
Tue Oct 1 16:15:21 CEST 2019


Commit: 0230148fb7edd64dfc00d558bee037a162f4d16f
Author: Brecht Van Lommel
Date:   Mon Sep 30 14:37:47 2019 +0200
Branches: master
https://developer.blender.org/rB0230148fb7edd64dfc00d558bee037a162f4d16f

Cleanup: avoid unnecessary brush radius test in mask expand

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

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 4f0fe73abab..c21bc4a8828 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -9104,16 +9104,7 @@ static int sculpt_mask_expand_invoke(bContext *C, wmOperator *op, const wmEvent
 
   ss->filter_cache = MEM_callocN(sizeof(FilterCache), "filter cache");
 
-  SculptSearchSphereData searchdata = {
-      .ss = ss,
-      .sd = sd,
-      .radius_squared = FLT_MAX,
-  };
-  BKE_pbvh_search_gather(pbvh,
-                         sculpt_search_sphere_cb,
-                         &searchdata,
-                         &ss->filter_cache->nodes,
-                         &ss->filter_cache->totnode);
+  BKE_pbvh_search_gather(pbvh, NULL, NULL, &ss->filter_cache->nodes, &ss->filter_cache->totnode);
 
   sculpt_undo_push_begin("Mask Expand");



More information about the Bf-blender-cvs mailing list