From 983ef262d85d0963c54b581e39a4692174b8b6ff Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Mon, 7 Oct 2024 22:34:23 +0200 Subject: [PATCH] Fix #128618: Crash when using cloth brush and automasking Mistake in f4f732be9568ac998b558607dc85e8094e4b14e5 Pull Request: https://projects.blender.org/blender/blender/pulls/128713 --- source/blender/editors/sculpt_paint/sculpt_cloth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_cloth.cc b/source/blender/editors/sculpt_paint/sculpt_cloth.cc index 7ea1188bcd9..f4186151ece 100644 --- a/source/blender/editors/sculpt_paint/sculpt_cloth.cc +++ b/source/blender/editors/sculpt_paint/sculpt_cloth.cc @@ -892,7 +892,7 @@ static void calc_forces_grids(const Depsgraph &depsgraph, calc_brush_strength_factors(cache, brush, distances, factors); const auto_mask::Cache *automask = auto_mask::active_cache_get(ss); - auto_mask::calc_grids_factors(depsgraph, ob, automask, node, verts, factors); + auto_mask::calc_grids_factors(depsgraph, ob, automask, node, grids, factors); calc_brush_texture_factors(ss, brush, current_positions, factors);