Fix: Missing normals update in sculpt mesh filter

Mistake in 11a4510e9a.
This commit is contained in:
Hans Goudey
2024-07-25 13:52:59 -04:00
parent 71af44551e
commit e9f6dca59d

View File

@@ -679,7 +679,7 @@ static void sculpt_mesh_filter_apply(bContext *C, wmOperator *op)
const Span<bke::pbvh::Node *> 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);
}