diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-06 02:21:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-06 02:21:14 +0400 |
commit | 8fd42b2aae6c1415be2365d09153fb8578aeecaa (patch) | |
tree | 7500afce81225b1efd8ff5addb9d2ba81707813e /source/blender/bmesh/intern/bmesh_opdefines.c | |
parent | 716ed32d902cd57cf700723627e8a4ba3e55a858 (diff) |
patch [#34886] BMesh Individual Face Inset
from Francisco De La Cruz (xercesblue) with some simplifications to the patch.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_opdefines.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_opdefines.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c index 7583332c4db..31398b452bd 100644 --- a/source/blender/bmesh/intern/bmesh_opdefines.c +++ b/source/blender/bmesh/intern/bmesh_opdefines.c @@ -1500,6 +1500,28 @@ static BMOpDefine bmo_solidify_def = { }; /* + * Face Inset (Individual). + * + * Insets individual faces. + */ +static BMOpDefine bmo_inset_individual_def = { + "inset_individual", + /* slots_in */ + {{"faces", BMO_OP_SLOT_ELEMENT_BUF, {BM_FACE}}, /* input faces */ + {"thickness", BMO_OP_SLOT_FLT}, + {"depth", BMO_OP_SLOT_FLT}, + {"use_even_offset", BMO_OP_SLOT_BOOL}, + {{'\0'}}, + }, + /* slots_out */ + {{"faces.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_FACE}}, /* output faces */ + {{'\0'}}, + }, + bmo_inset_individual_exec, + 0 +}; + +/* * Face Inset. * * Inset or outset faces. @@ -1647,6 +1669,7 @@ const BMOpDefine *bmo_opdefines[] = { &bmo_extrude_face_region_def, &bmo_extrude_vert_indiv_def, &bmo_find_doubles_def, + &bmo_inset_individual_def, &bmo_inset_def, &bmo_join_triangles_def, &bmo_mesh_to_bmesh_def, |