Cleaup: Clang format

This commit is contained in:
Pablo Dobarro 2021-03-03 18:51:35 +01:00
parent b1b49f6130
commit 75794afdcd
1 changed files with 6 additions and 2 deletions

View File

@ -972,7 +972,7 @@ static int sculpt_ipmask_filter_modal(bContext *C, wmOperator *op, const wmEvent
const float len = event->x - event->prevclickx;
const float target_step_fl = len * IPMASK_FILTER_STEP_SENSITIVITY * UI_DPI_FAC;
const int target_step = floorf(target_step_fl);
const float step_interpolation = use_step_interpolation? target_step_fl - target_step: 0.0f;
const float step_interpolation = use_step_interpolation ? target_step_fl - target_step : 0.0f;
const float full_step_strength = target_step_fl / IPMASK_FILTER_STEPS_PER_FULL_STRENGTH;
BKE_sculpt_update_object_for_edit(depsgraph, ob, true, true, false);
@ -1078,7 +1078,11 @@ void SCULPT_OT_ipmask_filter(struct wmOperatorType *ot)
1,
100);
RNA_def_boolean(
ot->srna, "use_step_interpolation", true, "Step Interpolation", "Calculate and render intermediate values between multiple full steps of the filter");
ot->srna,
"use_step_interpolation",
true,
"Step Interpolation",
"Calculate and render intermediate values between multiple full steps of the filter");
}
/******************************************************************************************/