Cleanup: Perform cleanup on sculpt_automasking.cc #117651

Merged
Hans Goudey merged 4 commits from Sean-Kim/blender:cleanup-automask into main 2024-01-31 21:43:12 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit df9490c0b5 - Show all commits

View File

@ -1556,7 +1556,7 @@ static int sculpt_cloth_filter_invoke(bContext *C, wmOperator *op, const wmEvent
RNA_float_get(op->ptr, "area_normal_radius"),
RNA_float_get(op->ptr, "strength"));
ss->filter_cache->automasking = auto_mask::cache_init(sd, nullptr, ob);
ss->filter_cache->automasking = auto_mask::cache_init(sd, ob);
const float cloth_mass = RNA_float_get(op->ptr, "cloth_mass");
const float cloth_damping = RNA_float_get(op->ptr, "cloth_damping");

View File

@ -371,7 +371,7 @@ static int sculpt_color_filter_init(bContext *C, wmOperator *op)
RNA_float_get(op->ptr, "strength"));
filter::Cache *filter_cache = ss->filter_cache;
filter_cache->active_face_set = SCULPT_FACE_SET_NONE;
filter_cache->automasking = auto_mask::cache_init(sd, nullptr, ob);
filter_cache->automasking = auto_mask::cache_init(sd, ob);
return OPERATOR_PASS_THROUGH;
}

View File

@ -1010,7 +1010,7 @@ static int sculpt_mesh_filter_start(bContext *C, wmOperator *op)
filter::Cache *filter_cache = ss->filter_cache;
filter_cache->active_face_set = SCULPT_FACE_SET_NONE;
filter_cache->automasking = auto_mask::cache_init(sd, nullptr, ob);
filter_cache->automasking = auto_mask::cache_init(sd, ob);
sculpt_filter_specific_init(filter_type, op, ss);