diff --git a/release/scripts/op/add_mesh_torus.py b/release/scripts/op/add_mesh_torus.py index 217aa8fae83..70e394671fe 100644 --- a/release/scripts/op/add_mesh_torus.py +++ b/release/scripts/op/add_mesh_torus.py @@ -135,7 +135,7 @@ class AddTorus(bpy.types.Operator): def menu_func(self, context): - self.layout.operator(AddTorus.bl_idname, text="Torus", icon='MESH_DONUT') + self.layout.operator(AddTorus.bl_idname, text="Torus", icon='MESH_TORUS') def register(): diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py index 7f8c2779920..7855c983f02 100644 --- a/release/scripts/ui/space_info.py +++ b/release/scripts/ui/space_info.py @@ -202,7 +202,7 @@ class INFO_MT_surface_add(bpy.types.Menu): layout.operator("surface.primitive_nurbs_surface_surface_add", icon='SURFACE_NSURFACE', text="NURBS Surface") layout.operator("surface.primitive_nurbs_surface_tube_add", icon='SURFACE_NTUBE', text="NURBS Tube") layout.operator("surface.primitive_nurbs_surface_sphere_add", icon='SURFACE_NSPHERE', text="NURBS Sphere") - layout.operator("surface.primitive_nurbs_surface_donut_add", icon='SURFACE_NDONUT', text="NURBS Torus") + layout.operator("surface.primitive_nurbs_surface_torus_add", icon='SURFACE_NTORUS', text="NURBS Torus") class INFO_MT_armature_add(bpy.types.Menu): diff --git a/source/blender/editors/curve/curve_intern.h b/source/blender/editors/curve/curve_intern.h index 10c1bd84262..fc510a06123 100644 --- a/source/blender/editors/curve/curve_intern.h +++ b/source/blender/editors/curve/curve_intern.h @@ -99,7 +99,7 @@ void SURFACE_OT_primitive_nurbs_surface_circle_add(struct wmOperatorType *ot); void SURFACE_OT_primitive_nurbs_surface_surface_add(struct wmOperatorType *ot); void SURFACE_OT_primitive_nurbs_surface_tube_add(struct wmOperatorType *ot); void SURFACE_OT_primitive_nurbs_surface_sphere_add(struct wmOperatorType *ot); -void SURFACE_OT_primitive_nurbs_surface_donut_add(struct wmOperatorType *ot); +void SURFACE_OT_primitive_nurbs_surface_torus_add(struct wmOperatorType *ot); void CURVE_OT_de_select_first(struct wmOperatorType *ot); void CURVE_OT_de_select_last(struct wmOperatorType *ot); diff --git a/source/blender/editors/curve/curve_ops.c b/source/blender/editors/curve/curve_ops.c index b5b6ee4e6da..d06013ac1d2 100644 --- a/source/blender/editors/curve/curve_ops.c +++ b/source/blender/editors/curve/curve_ops.c @@ -107,7 +107,7 @@ void ED_operatortypes_curve(void) WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_surface_add); WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_tube_add); WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_sphere_add); - WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_donut_add); + WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_torus_add); WM_operatortype_append(CURVE_OT_smooth); WM_operatortype_append(CURVE_OT_smooth_radius); diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 1097b55edbc..a0055d66286 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -5949,7 +5949,7 @@ Nurb *add_nurbs_primitive(bContext *C, float mat[4][4], int type, int newname) BLI_remlink(editnurb, nu); } break; - case CU_PRIM_DONUT: /* donut */ + case CU_PRIM_DONUT: /* torus */ if( cutype==CU_NURBS ) { float tmp_cent[3] = {0.f, 0.f, 0.f}; float tmp_vec[3] = {0.f, 0.f, 0.f}; @@ -6281,21 +6281,21 @@ void SURFACE_OT_primitive_nurbs_surface_sphere_add(wmOperatorType *ot) ED_object_add_generic_props(ot, TRUE); } -static int add_primitive_nurbs_surface_donut_exec(bContext *C, wmOperator *op) +static int add_primitive_nurbs_surface_torus_exec(bContext *C, wmOperator *op) { return surf_prim_add(C, op, CU_PRIM_DONUT|CU_NURBS); } -void SURFACE_OT_primitive_nurbs_surface_donut_add(wmOperatorType *ot) +void SURFACE_OT_primitive_nurbs_surface_torus_add(wmOperatorType *ot) { /* identifiers */ - ot->name= "Add Surface Donut"; - ot->description= "Construct a Nurbs surface Donut"; - ot->idname= "SURFACE_OT_primitive_nurbs_surface_donut_add"; + ot->name= "Add Surface Torus"; + ot->description= "Construct a Nurbs surface Torus"; + ot->idname= "SURFACE_OT_primitive_nurbs_surface_torus_add"; /* api callbacks */ ot->invoke= ED_object_add_generic_invoke; - ot->exec= add_primitive_nurbs_surface_donut_exec; + ot->exec= add_primitive_nurbs_surface_torus_exec; ot->poll= ED_operator_scene_editable; /* flags */ diff --git a/source/blender/editors/include/UI_icons.h b/source/blender/editors/include/UI_icons.h index 6a139b124a6..1a51c129005 100644 --- a/source/blender/editors/include/UI_icons.h +++ b/source/blender/editors/include/UI_icons.h @@ -346,7 +346,7 @@ DEF_ICON(ICON_MESH_ICOSPHERE) DEF_ICON(ICON_MESH_GRID) DEF_ICON(ICON_MESH_MONKEY) DEF_ICON(ICON_MESH_TUBE) -DEF_ICON(ICON_MESH_DONUT) +DEF_ICON(ICON_MESH_TORUS) DEF_ICON(ICON_MESH_CONE) DEF_ICON(ICON_BLANK610) DEF_ICON(ICON_BLANK611) @@ -371,7 +371,7 @@ DEF_ICON(ICON_SURFACE_NCIRCLE) DEF_ICON(ICON_SURFACE_NSURFACE) DEF_ICON(ICON_SURFACE_NTUBE) DEF_ICON(ICON_SURFACE_NSPHERE) -DEF_ICON(ICON_SURFACE_NDONUT) +DEF_ICON(ICON_SURFACE_NTORUS) DEF_ICON(ICON_BLANK636) DEF_ICON(ICON_BLANK637) DEF_ICON(ICON_BLANK638)