diff --git a/source/blender/editors/sculpt_paint/sculpt_cloth.cc b/source/blender/editors/sculpt_paint/sculpt_cloth.cc index 5dde54acc65..3d8ece2843f 100644 --- a/source/blender/editors/sculpt_paint/sculpt_cloth.cc +++ b/source/blender/editors/sculpt_paint/sculpt_cloth.cc @@ -2431,7 +2431,9 @@ static wmOperatorStatus sculpt_cloth_filter_invoke(bContext *C, RNA_float_get(op->ptr, "area_normal_radius"), RNA_float_get(op->ptr, "strength")); - auto_mask::filter_cache_ensure(*depsgraph, sd, ob); + if (auto_mask::is_enabled(sd, ob, nullptr)) { + auto_mask::filter_cache_ensure(*depsgraph, sd, ob); + } const float cloth_mass = RNA_float_get(op->ptr, "cloth_mass"); const float cloth_damping = RNA_float_get(op->ptr, "cloth_damping"); diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.cc b/source/blender/editors/sculpt_paint/sculpt_filter_color.cc index fed53d9ce4a..16e0807fce0 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_color.cc +++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.cc @@ -509,7 +509,9 @@ static int sculpt_color_filter_init(bContext *C, wmOperator *op) const SculptSession &ss = *ob.sculpt; filter::Cache *filter_cache = ss.filter_cache; filter_cache->active_face_set = SCULPT_FACE_SET_NONE; - auto_mask::filter_cache_ensure(*depsgraph, sd, ob); + if (auto_mask::is_enabled(sd, ob, nullptr)) { + auto_mask::filter_cache_ensure(*depsgraph, sd, ob); + } return OPERATOR_PASS_THROUGH; } diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc index a9bdec6f0e6..f9a63c5d49e 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc +++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc @@ -2439,7 +2439,9 @@ static wmOperatorStatus sculpt_mesh_filter_start(bContext *C, wmOperator *op) filter::Cache *filter_cache = ss.filter_cache; filter_cache->active_face_set = SCULPT_FACE_SET_NONE; - auto_mask::filter_cache_ensure(*depsgraph, sd, ob); + if (auto_mask::is_enabled(sd, ob, nullptr)) { + auto_mask::filter_cache_ensure(*depsgraph, sd, ob); + } sculpt_filter_specific_init(*depsgraph, filter_type, op, ob);