Improve description of move operator direction properties
authorJulian Eisel <eiseljulian@gmail.com>
Fri, 16 Sep 2016 15:03:44 +0000 (17:03 +0200)
committerJulian Eisel <eiseljulian@gmail.com>
Fri, 16 Sep 2016 15:03:44 +0000 (17:03 +0200)
These may be exposed in UI (keymap editor & redo panel), so better avoid using identifiers like "UP" "DOWN". They are redundant anyway (already displayed).

source/blender/editors/armature/pose_group.c
source/blender/editors/armature/pose_lib.c
source/blender/editors/object/object_vgroup.c
source/blender/editors/render/render_shading.c
source/blender/editors/space_file/file_ops.c

index 4d9df06f33f6046845ed713e52eb594162c3aca2..85bee023cef44f9243d510201d106b8b820c9347 100644 (file)
@@ -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 */
index 2012237ed4ece00c59950a3a838cc2c96bf99430..f860614231e5a51153505f2719324220deaecbe8 100644 (file)
@@ -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");
 }
 
 
index ad41fb23a693577d2f7b10421f55165625e96905..3b7f518d36f246874916e796f91c30d5c7619d5d 100644 (file)
@@ -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)
index 5a0c250c7779f1c1a6fbd70e37be313cd7fe3d61..4796024646c834c4478a83bff9affc360e97de60 100644 (file)
@@ -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)
index 9f5e98d243168c043fe53edfea5b40837466e0b9..b7228f634bfd6bb854a924b78c1b9e2aa2011931 100644 (file)
@@ -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))