diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-01-18 20:54:10 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2019-01-18 20:54:10 +0300 |
commit | b640fd829e3a228561e4d9dba9c830ae22d3ebc7 (patch) | |
tree | 431a203d22e26bb816ccc6e3990c54fc41bd3bbd /source/blender/bmesh/intern/bmesh_opdefines.c | |
parent | c9938ebb0064675a17c92e8112fc4d416bba5f7c (diff) |
Add miter pattern options.
Will document the new options in release notes, then in manual.
Still a bit of work to do on the bulging shape that appears
on cube corners if using arc inner miters, but will do that later.
Also need to do something smarter in clamp overlap.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_opdefines.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_opdefines.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c index db4985c62f6..dd913d95778 100644 --- a/source/blender/bmesh/intern/bmesh_opdefines.c +++ b/source/blender/bmesh/intern/bmesh_opdefines.c @@ -1743,6 +1743,13 @@ static BMO_FlagSet bmo_enum_bevel_face_strength_type[] = { {0, NULL}, }; +static BMO_FlagSet bmo_enum_bevel_miter_type[] = { + {BEVEL_MITER_SHARP, "SHARP"}, + {BEVEL_MITER_PATCH, "PATCH"}, + {BEVEL_MITER_ARC, "ARC"}, + {0, NULL}, +}; + /* * Bevel. * @@ -1765,6 +1772,11 @@ static BMOpDefine bmo_bevel_def = { {"harden_normals", BMO_OP_SLOT_BOOL}, /* harden normals */ {"face_strength_mode", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, bmo_enum_bevel_face_strength_type}, /* whether to set face strength, and which faces to set if so */ + {"miter_outer", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, + bmo_enum_bevel_miter_type}, /* outer miter kind */ + {"miter_inner", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, + bmo_enum_bevel_miter_type}, /* outer miter kind */ + {"spread", BMO_OP_SLOT_FLT}, /* amount to offset beveled edge */ {"smoothresh", BMO_OP_SLOT_FLT}, /* for passing mesh's smoothresh, used in hardening */ {{'\0'}}, }, |