BMesh: subdiv smooth, use simpler even calculation
Was checking all vertices adjacent faces, now just compare the difference between normal angles. Also default to inverse-square for loopcut-subdiv falloff.
This commit is contained in:
@@ -198,7 +198,7 @@ static void alter_co(
|
||||
val = bmesh_subd_falloff_calc(params->smooth_falloff, val);
|
||||
|
||||
if (params->use_smooth_even) {
|
||||
val *= BM_vert_calc_shell_factor(v);
|
||||
val *= shell_v3v3_mid_normalized_to_dist(v_a->no, v_b->no);
|
||||
}
|
||||
|
||||
mul_v3_fl(tvec, params->smooth * val * len);
|
||||
|
||||
@@ -835,7 +835,7 @@ void MESH_OT_loopcut(wmOperatorType *ot)
|
||||
|
||||
prop = RNA_def_property(ot->srna, "falloff", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, proportional_falloff_curve_only_items);
|
||||
RNA_def_property_enum_default(prop, PROP_ROOT);
|
||||
RNA_def_property_enum_default(prop, PROP_INVSQUARE);
|
||||
RNA_def_property_ui_text(prop, "Falloff", "Falloff type the feather");
|
||||
RNA_def_property_translation_context(prop, BLF_I18NCONTEXT_ID_CURVE); /* Abusing id_curve :/ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user