diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-30 15:37:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 17:10:38 +0300 |
commit | 0230148fb7edd64dfc00d558bee037a162f4d16f (patch) | |
tree | 02818d267c5d8c6d703091971ffaca38bc017a61 /source/blender/editors | |
parent | 81cc2fd1c15b4f7b689b9ed27e1e942fa35903a3 (diff) |
Cleanup: avoid unnecessary brush radius test in mask expand
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 11 |
1 files changed, 1 insertions, 10 deletions
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"); |