[Bf-blender-cvs] [2ad6143] master: Cleanup: name hide/reveal, like rest of operators

Campbell Barton noreply at git.blender.org
Wed Nov 19 14:35:00 CET 2014


Commit: 2ad61438d8a8e7bb5e03b89f8ba0863cdfa028ea
Author: Campbell Barton
Date:   Wed Nov 19 14:35:00 2014 +0100
Branches: master
https://developer.blender.org/rB2ad61438d8a8e7bb5e03b89f8ba0863cdfa028ea

Cleanup: name hide/reveal, like rest of operators

===================================================================

M	release/scripts/startup/bl_ui/space_graph.py
M	source/blender/editors/space_graph/graph_ops.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py
index a815540..cb5926b 100644
--- a/release/scripts/startup/bl_ui/space_graph.py
+++ b/release/scripts/startup/bl_ui/space_graph.py
@@ -190,7 +190,7 @@ class GRAPH_MT_channel(Menu):
         layout.separator()
         layout.operator("anim.channels_editable_toggle")
         layout.operator("graph.hide")
-        layout.operator("graph.unhide")
+        layout.operator("graph.reveal")
         layout.operator("anim.channels_visibility_set")
         layout.operator_menu_enum("graph.extrapolation_type", "type", text="Extrapolation Mode")
 
diff --git a/source/blender/editors/space_graph/graph_ops.c b/source/blender/editors/space_graph/graph_ops.c
index a4f5750..fe6d729 100644
--- a/source/blender/editors/space_graph/graph_ops.c
+++ b/source/blender/editors/space_graph/graph_ops.c
@@ -201,7 +201,7 @@ static void GRAPH_OT_cursor_set(wmOperatorType *ot)
 	RNA_def_float(ot->srna, "value", 0, -FLT_MAX, FLT_MAX, "Value", "", -100.0f, 100.0f);
 }
 
-/* Hide/UnHide Curves ----------------------------------------------------------------------------- */
+/* Hide/Reveal ------------------------------------------------------------ */
 
 static int graphview_curves_hide_exec(bContext *C, wmOperator *UNUSED(op))
 {
@@ -268,7 +268,7 @@ static void GRAPH_OT_hide(wmOperatorType *ot)
 
 /* ........ */
 
-static int graphview_curves_unhide_exec(bContext *C, wmOperator *UNUSED(op))
+static int graphview_curves_reveal_exec(bContext *C, wmOperator *UNUSED(op))
 {
 	bAnimContext ac;
 	ListBase anim_data = {NULL, NULL};
@@ -319,15 +319,15 @@ static int graphview_curves_unhide_exec(bContext *C, wmOperator *UNUSED(op))
 	return OPERATOR_FINISHED;
 }
 
-static void GRAPH_OT_unhide(wmOperatorType *ot)
+static void GRAPH_OT_reveal(wmOperatorType *ot)
 {
 	/* identifiers */
-	ot->name = "Unhide Curves";
-	ot->idname = "GRAPH_OT_unhide";
+	ot->name = "Reveal Curves";
+	ot->idname = "GRAPH_OT_reveal";
 	ot->description = "Make previously hidden curves visible again in Graph Editor view";
 	
 	/* api callbacks */
-	ot->exec = graphview_curves_unhide_exec;
+	ot->exec = graphview_curves_reveal_exec;
 	ot->poll = ED_operator_graphedit_active;
 	
 	/* flags */
@@ -350,7 +350,7 @@ void graphedit_operatortypes(void)
 	WM_operatortype_append(GRAPH_OT_ghost_curves_clear);
 	
 	WM_operatortype_append(GRAPH_OT_hide);
-	WM_operatortype_append(GRAPH_OT_unhide);
+	WM_operatortype_append(GRAPH_OT_reveal);
 	
 	/* keyframes */
 	/* selection */
@@ -586,9 +586,9 @@ void graphedit_keymap(wmKeyConfig *keyconf)
 	/* find (i.e. a shortcut for setting the name filter) */
 	WM_keymap_add_item(keymap, "ANIM_OT_channels_find", FKEY, KM_PRESS, KM_CTRL, 0);
 	
-	/* hide/unhide selected curves */
+	/* hide/reveal selected curves */
 	WM_keymap_add_item(keymap, "GRAPH_OT_hide", HKEY, KM_PRESS, 0, 0);
-	WM_keymap_add_item(keymap, "GRAPH_OT_unhide", HKEY, KM_PRESS, KM_SHIFT, 0);
+	WM_keymap_add_item(keymap, "GRAPH_OT_reveal", HKEY, KM_PRESS, KM_SHIFT, 0);
 	
 	
 	/* channels */




More information about the Bf-blender-cvs mailing list