merge with 2.5 at r18598, also made the test 2.5 operator use the (naive) edge subdiv...
[blender.git] / source / blender / bmesh / intern / bmesh_opdefines.c
1 #include "bmesh.h"
2 #include "bmesh_private.h"
3
4 #include <stdio.h>
5
6 BMOpDefine def_subdop = {
7         {BMOP_OPSLOT_PNT_BUF},
8         esubdivide_exec,
9         BMOP_ESUBDIVIDE_TOTSLOT,
10         0
11 };
12
13 BMOpDefine def_edit2bmesh = {
14         {BMOP_OPSLOT_PNT},
15         edit2bmesh_exec,
16         BMOP_TO_EDITMESH_TOTSLOT,
17         0
18 };
19
20 BMOpDefine def_bmesh2edit = {
21         {BMOP_OPSLOT_PNT},
22         bmesh2edit_exec,
23         BMOP_FROM_EDITMESH_TOTSLOT,
24         0
25 };
26
27 BMOpDefine def_delop = {
28         {BMOP_OPSLOT_PNT_BUF, BMOP_OPSLOT_INT},
29         delop_exec,
30         BMOP_DEL_TOTSLOT,
31         0
32 };
33
34 BMOpDefine def_dupeop = {
35         {BMOP_OPSLOT_PNT_BUF, BMOP_OPSLOT_PNT_BUF, BMOP_OPSLOT_PNT_BUF},
36         dupeop_exec,
37         BMOP_DUPE_TOTSLOT,
38         0
39 };
40
41 BMOpDefine def_splitop = {
42         {BMOP_OPSLOT_PNT_BUF, BMOP_OPSLOT_PNT_BUF},
43         splitop_exec,
44         BMOP_SPLIT_TOTSLOT,
45         0
46 };
47
48 BMOpDefine *opdefines[] = {
49         &def_splitop,
50         &def_dupeop,
51         &def_delop,
52         &def_edit2bmesh,
53         &def_bmesh2edit,
54         &def_subdop,
55 };
56
57 int bmesh_total_ops = (sizeof(opdefines) / sizeof(void*));