forked from bartvdbraak/blender
Bugfix #26977 + Patch by Harley Acheson
Using search for operators showed ambigious names like "Duplicate" or "Delete". Default names should give at least a descriptive label. In case operators are collected in a group name-shortening should be handled separaly.
This commit is contained in:
parent
a8185f4cc8
commit
c4debb1c64
@ -1287,7 +1287,7 @@ void ANIM_OT_keyframe_delete (wmOperatorType *ot)
|
|||||||
PropertyRNA *prop;
|
PropertyRNA *prop;
|
||||||
|
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Delete Keyframe";
|
ot->name= "Delete Keying-Set Keyframe";
|
||||||
ot->idname= "ANIM_OT_keyframe_delete";
|
ot->idname= "ANIM_OT_keyframe_delete";
|
||||||
ot->description= "Delete keyframes on the current frame for all properties in the specified Keying Set";
|
ot->description= "Delete keyframes on the current frame for all properties in the specified Keying Set";
|
||||||
|
|
||||||
|
@ -5639,7 +5639,7 @@ static int duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
|
|||||||
void CURVE_OT_duplicate(wmOperatorType *ot)
|
void CURVE_OT_duplicate(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Duplicate";
|
ot->name= "Duplicate Curve";
|
||||||
ot->description = "Duplicate selected control points and segments between them";
|
ot->description = "Duplicate selected control points and segments between them";
|
||||||
ot->idname= "CURVE_OT_duplicate";
|
ot->idname= "CURVE_OT_duplicate";
|
||||||
|
|
||||||
@ -6664,7 +6664,7 @@ static int add_primitive_bezier_circle_exec(bContext *C, wmOperator *op)
|
|||||||
void CURVE_OT_primitive_bezier_circle_add(wmOperatorType *ot)
|
void CURVE_OT_primitive_bezier_circle_add(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Add Circle";
|
ot->name= "Add Bezier Circle";
|
||||||
ot->description= "Construct a Bezier Circle";
|
ot->description= "Construct a Bezier Circle";
|
||||||
ot->idname= "CURVE_OT_primitive_bezier_circle_add";
|
ot->idname= "CURVE_OT_primitive_bezier_circle_add";
|
||||||
|
|
||||||
|
@ -1715,7 +1715,7 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
|
|||||||
void FONT_OT_open(wmOperatorType *ot)
|
void FONT_OT_open(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Open";
|
ot->name= "Open Font";
|
||||||
ot->idname= "FONT_OT_open";
|
ot->idname= "FONT_OT_open";
|
||||||
|
|
||||||
/* api callbacks */
|
/* api callbacks */
|
||||||
|
@ -1048,7 +1048,7 @@ static int view_zoomdrag_modal(bContext *C, wmOperator *op, wmEvent *event)
|
|||||||
static void VIEW2D_OT_zoom(wmOperatorType *ot)
|
static void VIEW2D_OT_zoom(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Zoom View";
|
ot->name= "Zoom 2D View";
|
||||||
ot->description= "Zoom in/out the view";
|
ot->description= "Zoom in/out the view";
|
||||||
ot->idname= "VIEW2D_OT_zoom";
|
ot->idname= "VIEW2D_OT_zoom";
|
||||||
|
|
||||||
|
@ -1754,7 +1754,7 @@ static int mesh_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(ev
|
|||||||
void MESH_OT_duplicate(wmOperatorType *ot)
|
void MESH_OT_duplicate(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Duplicate";
|
ot->name= "Duplicate Mesh";
|
||||||
ot->description= "Duplicate selected vertices, edges or faces";
|
ot->description= "Duplicate selected vertices, edges or faces";
|
||||||
ot->idname= "MESH_OT_duplicate";
|
ot->idname= "MESH_OT_duplicate";
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ static int duplicate_metaelems_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
|
|||||||
void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
|
void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Duplicate";
|
ot->name= "Duplicate Metaelements";
|
||||||
ot->description= "Delete selected metaelement(s)";
|
ot->description= "Delete selected metaelement(s)";
|
||||||
ot->idname= "MBALL_OT_duplicate_metaelems";
|
ot->idname= "MBALL_OT_duplicate_metaelems";
|
||||||
|
|
||||||
|
@ -1704,7 +1704,7 @@ void OBJECT_OT_duplicate(wmOperatorType *ot)
|
|||||||
PropertyRNA *prop;
|
PropertyRNA *prop;
|
||||||
|
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Duplicate";
|
ot->name= "Duplicate Objects";
|
||||||
ot->description = "Duplicate selected objects";
|
ot->description = "Duplicate selected objects";
|
||||||
ot->idname= "OBJECT_OT_duplicate";
|
ot->idname= "OBJECT_OT_duplicate";
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ void ED_operatormacros_object(void)
|
|||||||
wmOperatorType *ot;
|
wmOperatorType *ot;
|
||||||
wmOperatorTypeMacro *otmacro;
|
wmOperatorTypeMacro *otmacro;
|
||||||
|
|
||||||
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
|
ot= WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate Objects", OPTYPE_UNDO|OPTYPE_REGISTER);
|
||||||
if(ot) {
|
if(ot) {
|
||||||
WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
|
WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate");
|
||||||
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
|
||||||
|
@ -1666,7 +1666,7 @@ static int sequencer_add_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *
|
|||||||
void SEQUENCER_OT_duplicate(wmOperatorType *ot)
|
void SEQUENCER_OT_duplicate(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Duplicate";
|
ot->name= "Duplicate Strips";
|
||||||
ot->idname= "SEQUENCER_OT_duplicate";
|
ot->idname= "SEQUENCER_OT_duplicate";
|
||||||
ot->description="Duplicate the selected strips";
|
ot->description="Duplicate the selected strips";
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
|
|||||||
void TEXT_OT_open(wmOperatorType *ot)
|
void TEXT_OT_open(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Open";
|
ot->name= "Open Text Block";
|
||||||
ot->idname= "TEXT_OT_open";
|
ot->idname= "TEXT_OT_open";
|
||||||
ot->description= "Open a new text data block";
|
ot->description= "Open a new text data block";
|
||||||
|
|
||||||
|
@ -1310,7 +1310,7 @@ static int viewzoom_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
|||||||
void VIEW3D_OT_zoom(wmOperatorType *ot)
|
void VIEW3D_OT_zoom(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name= "Zoom view";
|
ot->name= "Zoom View";
|
||||||
ot->description = "Zoom in/out in the view";
|
ot->description = "Zoom in/out in the view";
|
||||||
ot->idname= "VIEW3D_OT_zoom";
|
ot->idname= "VIEW3D_OT_zoom";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user