From e9f6dca59ded686cb41be76f2b2ea76fc9e40c06 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 25 Jul 2024 13:52:59 -0400 Subject: [PATCH] Fix: Missing normals update in sculpt mesh filter Mistake in 11a4510e9a3a1f9ed19ec9bc859a3280b40fb42e. --- source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc index 38926c1ac71..781c1610990 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc +++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc @@ -679,7 +679,7 @@ static void sculpt_mesh_filter_apply(bContext *C, wmOperator *op) const Span nodes = ss.filter_cache->nodes; /* The relax mesh filter needs updated normals. */ - if (ELEM(MESH_FILTER_RELAX, MESH_FILTER_RELAX_FACE_SETS)) { + if (ELEM(filter_type, MESH_FILTER_RELAX, MESH_FILTER_RELAX_FACE_SETS)) { bke::pbvh::update_normals(*ss.pbvh, ss.subdiv_ccg); }