Improve description of move operator direction properties
These may be exposed in UI (keymap editor & redo panel), so better avoid using identifiers like "UP" "DOWN". They are redundant anyway (already displayed).
This commit is contained in:
@@ -365,7 +365,8 @@ void POSE_OT_group_move(wmOperatorType *ot)
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
|
||||
RNA_def_enum(ot->srna, "direction", group_slot_move, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", group_slot_move, 0, "Direction",
|
||||
"Direction to move the active Bone Group towards");
|
||||
}
|
||||
|
||||
/* bone group sort element */
|
||||
|
||||
@@ -824,7 +824,8 @@ void POSELIB_OT_pose_move(wmOperatorType *ot)
|
||||
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
|
||||
ot->prop = prop;
|
||||
|
||||
RNA_def_enum(ot->srna, "direction", pose_lib_pose_move, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", pose_lib_pose_move, 0, "Direction",
|
||||
"Direction to move the chosen pose towards");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3687,7 +3687,8 @@ void OBJECT_OT_vertex_group_move(wmOperatorType *ot)
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
|
||||
RNA_def_enum(ot->srna, "direction", vgroup_slot_move, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", vgroup_slot_move, 0, "Direction",
|
||||
"Direction to move the active vertex group towards");
|
||||
}
|
||||
|
||||
static void vgroup_copy_active_to_sel_single(Object *ob, const int def_nr)
|
||||
|
||||
@@ -449,7 +449,8 @@ void OBJECT_OT_material_slot_move(wmOperatorType *ot)
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
|
||||
RNA_def_enum(ot->srna, "direction", material_slot_move, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", material_slot_move, 0, "Direction",
|
||||
"Direction to move the active material towards");
|
||||
}
|
||||
|
||||
/********************** new material operator *********************/
|
||||
@@ -861,7 +862,8 @@ void SCENE_OT_freestyle_module_move(wmOperatorType *ot)
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
|
||||
/* props */
|
||||
RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction",
|
||||
"Direction to move the chosen style module towards");
|
||||
}
|
||||
|
||||
static int freestyle_lineset_add_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
@@ -1024,7 +1026,8 @@ void SCENE_OT_freestyle_lineset_move(wmOperatorType *ot)
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
|
||||
/* props */
|
||||
RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction",
|
||||
"Direction to move the active line set towards");
|
||||
}
|
||||
|
||||
static int freestyle_linestyle_new_exec(bContext *C, wmOperator *op)
|
||||
@@ -1396,7 +1399,8 @@ void SCENE_OT_freestyle_modifier_move(wmOperatorType *ot)
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
|
||||
/* props */
|
||||
RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction",
|
||||
"Direction to move the chosen modifier towards");
|
||||
}
|
||||
|
||||
static int freestyle_stroke_material_create_exec(bContext *C, wmOperator *op)
|
||||
|
||||
@@ -1061,7 +1061,8 @@ void FILE_OT_bookmark_move(wmOperatorType *ot)
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER; /* No undo! */
|
||||
|
||||
RNA_def_enum(ot->srna, "direction", slot_move, 0, "Direction", "Direction to move, UP or DOWN");
|
||||
RNA_def_enum(ot->srna, "direction", slot_move, 0, "Direction",
|
||||
"Direction to move the active bookmark towards");
|
||||
}
|
||||
|
||||
static int reset_recent_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
|
||||
Reference in New Issue
Block a user