Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2017-06-07 15:53:10 +0300
committerHoward Trickey <howard.trickey@gmail.com>2017-06-07 15:53:10 +0300
commited84388e7d46214bbc5c4f8a28420f56e44cfa4d (patch)
tree3d983cd98ed1097d9d8c30d15fd083ea4e0e77c6 /source/blender/bmesh/intern/bmesh_opdefines.c
parenta3bb3092759f01a5914ffef4fa0e9afe1e02f2fa (diff)
Bevel Op (internal and API) now returns new edges and verts as well as
faces. This was requested by script writers. Especially needed if beveling wire edges with vertex_only. Should be backward compatible as just adds two new keys to returned dict in python ('edges' and 'verts').
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_opdefines.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_opdefines.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c
index d2f0fc1721c..200a31b1a57 100644
--- a/source/blender/bmesh/intern/bmesh_opdefines.c
+++ b/source/blender/bmesh/intern/bmesh_opdefines.c
@@ -1741,6 +1741,8 @@ static BMOpDefine bmo_bevel_def = {
},
/* slots_out */
{{"faces.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_FACE}}, /* output faces */
+ {"edges.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_EDGE}}, /* output edges */
+ {"verts.out", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT}}, /* output verts */
{{'\0'}},
},