Fix own really stupid mistake/typo in previous commit...
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 28 Jun 2017 11:21:04 +0000 (13:21 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 28 Jun 2017 11:21:04 +0000 (13:21 +0200)
source/blender/bmesh/operators/bmo_create.c

index 20b8a481ede4a03bbe482a6d81612745ec572e86..fa08d009d402c361e006a71aa062412ddbde1430 100644 (file)
@@ -74,7 +74,7 @@ void bmo_contextual_create_exec(BMesh *bm, BMOperator *op)
                BMVert *verts[2];
                BMEdge *e;
 
-               if (BMO_iter_as_array(op->slots_in, "geom", BM_VERT, (void **)verts, 2) == 0) {
+               if (BMO_iter_as_array(op->slots_in, "geom", BM_VERT, (void **)verts, 2) == 2) {
                        /* create edge */
                        e = BM_edge_create(bm, verts[0], verts[1], NULL, BM_CREATE_NO_DOUBLE);
                        BMO_edge_flag_enable(bm, e, ELE_OUT);