Fix T79160: Bevel modifier set to vertices by default

Need to properly initialize the affect_type field.
This commit is contained in:
Hans Goudey 2020-07-22 10:02:52 -04:00
parent a4e3943a08
commit 0e280b96ca
Notes: blender-bot 2023-02-14 02:41:05 +01:00
Referenced by issue #79160, Bevel modifier is set to vertices in 2.90 by default
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ static void initData(ModifierData *md)
bmd->face_str_mode = MOD_BEVEL_FACE_STRENGTH_NONE;
bmd->miter_inner = MOD_BEVEL_MITER_SHARP;
bmd->miter_outer = MOD_BEVEL_MITER_SHARP;
bmd->affect_type = MOD_BEVEL_AFFECT_EDGES;
bmd->spread = 0.1f;
bmd->mat = -1;
bmd->profile = 0.5f;