code cleanup: make bmesh operator names more consistant since python has access to...
[blender.git] / source / blender / editors / mesh / editmesh_add.c
index b8736d4f1d032463fad883c122c89b876f5b4fab..ee96ba71cddafaf186ac488603085f90d3299445 100644 (file)
@@ -108,7 +108,7 @@ static int add_primitive_plane_exec(bContext *C, wmOperator *op)
        obedit = make_prim_init(C, "Plane", &dia, mat, &state, loc, rot, layer);
        em = BMEdit_FromObject(obedit);
 
-       if (!EDBM_op_call_and_selectf(em, op, "vertout",
+       if (!EDBM_op_call_and_selectf(em, op, "verts.out",
                                      "create_grid xsegments=%i ysegments=%i size=%f mat=%m4", 1, 1, dia, mat))
        {
                return OPERATOR_CANCELLED;
@@ -149,7 +149,7 @@ static int add_primitive_cube_exec(bContext *C, wmOperator *op)
        obedit = make_prim_init(C, "Cube", &dia, mat, &state, loc, rot, layer);
        em = BMEdit_FromObject(obedit);
 
-       if (!EDBM_op_call_and_selectf(em, op, "vertout", "create_cube mat=%m4 size=%f", mat, dia * 2.0f)) {
+       if (!EDBM_op_call_and_selectf(em, op, "verts.out", "create_cube mat=%m4 size=%f", mat, dia * 2.0f)) {
                return OPERATOR_CANCELLED;
        }
 
@@ -198,7 +198,7 @@ static int add_primitive_circle_exec(bContext *C, wmOperator *op)
        obedit = make_prim_init(C, "Circle", &dia, mat, &state, loc, rot, layer);
        em = BMEdit_FromObject(obedit);
 
-       if (!EDBM_op_call_and_selectf(em, op, "vertout",
+       if (!EDBM_op_call_and_selectf(em, op, "verts.out",
                                      "create_circle segments=%i diameter=%f cap_ends=%b cap_tris=%b mat=%m4",
                                      RNA_int_get(op->ptr, "vertices"), RNA_float_get(op->ptr, "radius") * dia,
                                      cap_end, cap_tri, mat))
@@ -253,7 +253,7 @@ static int add_primitive_cylinder_exec(bContext *C, wmOperator *op)
        em = BMEdit_FromObject(obedit);
 
        if (!EDBM_op_call_and_selectf(
-               em, op, "vertout",
+               em, op, "verts.out",
                "create_cone segments=%i diameter1=%f diameter2=%f cap_ends=%b cap_tris=%b depth=%f mat=%m4",
                RNA_int_get(op->ptr, "vertices"),
                RNA_float_get(op->ptr, "radius") * dia,
@@ -313,7 +313,7 @@ static int add_primitive_cone_exec(bContext *C, wmOperator *op)
        em = BMEdit_FromObject(obedit);
 
        if (!EDBM_op_call_and_selectf(
-               em, op, "vertout",
+               em, op, "verts.out",
                "create_cone segments=%i diameter1=%f diameter2=%f cap_ends=%b cap_tris=%b depth=%f mat=%m4",
                RNA_int_get(op->ptr, "vertices"), RNA_float_get(op->ptr, "radius1") * dia,
                RNA_float_get(op->ptr, "radius2") * dia, cap_end, cap_tri, RNA_float_get(op->ptr, "depth") * dia, mat))
@@ -368,8 +368,8 @@ static int add_primitive_grid_exec(bContext *C, wmOperator *op)
        obedit = make_prim_init(C, "Grid", &dia, mat, &state, loc, rot, layer);
        em = BMEdit_FromObject(obedit);
 
-       if (!EDBM_op_call_and_selectf(em, op, "vertout",
-                                     "create_grid xsegments=%i ysegments=%i size=%f mat=%m4",
+       if (!EDBM_op_call_and_selectf(em, op, "verts.out",
+                                     "create_grid x_segments=%i y_segments=%i size=%f mat=%m4",
                                      RNA_int_get(op->ptr, "x_subdivisions"),
                                      RNA_int_get(op->ptr, "y_subdivisions"),
                                      RNA_float_get(op->ptr, "size") * dia, mat))
@@ -427,7 +427,7 @@ static int add_primitive_monkey_exec(bContext *C, wmOperator *op)
 
        em = BMEdit_FromObject(obedit);
 
-       if (!EDBM_op_call_and_selectf(em, op, "vertout", "create_monkey mat=%m4", mat)) {
+       if (!EDBM_op_call_and_selectf(em, op, "verts.out", "create_monkey mat=%m4", mat)) {
                return OPERATOR_CANCELLED;
        }
 
@@ -466,8 +466,8 @@ static int add_primitive_uvsphere_exec(bContext *C, wmOperator *op)
        obedit = make_prim_init(C, "Sphere", &dia, mat, &state, loc, rot, layer);
        em = BMEdit_FromObject(obedit);
 
-       if (!EDBM_op_call_and_selectf(em, op, "vertout",
-                                     "create_uvsphere segments=%i revolutions=%i diameter=%f mat=%m4",
+       if (!EDBM_op_call_and_selectf(em, op, "verts.out",
+                                     "create_uvsphere u_segments=%i v_segments=%i diameter=%f mat=%m4",
                                      RNA_int_get(op->ptr, "segments"), RNA_int_get(op->ptr, "ring_count"),
                                      RNA_float_get(op->ptr, "size") * dia, mat))
        {
@@ -518,7 +518,7 @@ static int add_primitive_icosphere_exec(bContext *C, wmOperator *op)
        em = BMEdit_FromObject(obedit);
 
        if (!EDBM_op_call_and_selectf(
-               em, op, "vertout",
+               em, op, "verts.out",
                "create_icosphere subdivisions=%i diameter=%f mat=%m4",
                RNA_int_get(op->ptr, "subdivisions"),
                RNA_float_get(op->ptr, "size") * dia, mat))