[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21517] branches/blender2.5/blender/source /blender/editors: 2. 5 - Added descriptions to all Animation Editor operators

Joshua Leung aligorith at gmail.com
Sat Jul 11 12:20:48 CEST 2009


Revision: 21517
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21517
Author:   aligorith
Date:     2009-07-11 12:20:48 +0200 (Sat, 11 Jul 2009)

Log Message:
-----------
2.5 - Added descriptions to all Animation Editor operators

DopeSheet and Graph Editor operators were missing these, since many of these operators were written before that field was added.
NLA Editor's operators already have them.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/animation/anim_channels.c
    branches/blender2.5/blender/source/blender/editors/mesh/meshtools.c
    branches/blender2.5/blender/source/blender/editors/space_action/action_edit.c
    branches/blender2.5/blender/source/blender/editors/space_action/action_select.c
    branches/blender2.5/blender/source/blender/editors/space_graph/graph_edit.c
    branches/blender2.5/blender/source/blender/editors/space_graph/graph_header.c
    branches/blender2.5/blender/source/blender/editors/space_graph/graph_select.c

Modified: branches/blender2.5/blender/source/blender/editors/animation/anim_channels.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/animation/anim_channels.c	2009-07-11 09:14:12 UTC (rev 21516)
+++ branches/blender2.5/blender/source/blender/editors/animation/anim_channels.c	2009-07-11 10:20:48 UTC (rev 21517)
@@ -799,6 +799,7 @@
 	/* identifiers */
 	ot->name= "Delete Channels";
 	ot->idname= "ANIM_OT_channels_delete";
+	ot->description= "Delete all selected animation channels.";
 	
 	/* api callbacks */
 	ot->exec= animchannels_delete_exec;
@@ -869,6 +870,7 @@
 	/* identifiers */
 	ot->name= "Toggle Visibility";
 	ot->idname= "ANIM_OT_channels_visibility_toggle";
+	ot->description= "Toggle visibility in Graph Editor of all selected animation channels.";
 	
 	/* api callbacks */
 	ot->exec= animchannels_visibility_toggle_exec;
@@ -1134,6 +1136,7 @@
 	/* identifiers */
 	ot->name= "Enable Channel Setting";
 	ot->idname= "ANIM_OT_channels_setting_enable";
+	ot->description= "Enable specified setting on all selected animation channels.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -1155,6 +1158,7 @@
 	/* identifiers */
 	ot->name= "Disable Channel Setting";
 	ot->idname= "ANIM_OT_channels_setting_disable";
+	ot->description= "Disable specified setting on all selected animation channels.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -1176,6 +1180,7 @@
 	/* identifiers */
 	ot->name= "Toggle Channel Setting";
 	ot->idname= "ANIM_OT_channels_setting_toggle";
+	ot->description= "Toggle specified setting on all selected animation channels.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -1198,6 +1203,7 @@
 	/* identifiers */
 	ot->name= "Toggle Channel Editability";
 	ot->idname= "ANIM_OT_channels_editable_toggle";
+	ot->description= "Toggle editability of selected channels.";
 	
 	/* api callbacks */
 	ot->exec= animchannels_setflag_exec;
@@ -1242,6 +1248,7 @@
 	/* identifiers */
 	ot->name= "Expand Channels";
 	ot->idname= "ANIM_OT_channels_expand";
+	ot->description= "Expand (i.e. open) all selected expandable animation channels.";
 	
 	/* api callbacks */
 	ot->exec= animchannels_expand_exec;
@@ -1283,6 +1290,7 @@
 	/* identifiers */
 	ot->name= "Collapse Channels";
 	ot->idname= "ANIM_OT_channels_collapse";
+	ot->description= "Collapse (i.e. close) all selected expandable animation channels.";
 	
 	/* api callbacks */
 	ot->exec= animchannels_collapse_exec;
@@ -1322,6 +1330,7 @@
 	/* identifiers */
 	ot->name= "Select All";
 	ot->idname= "ANIM_OT_channels_select_all_toggle";
+	ot->description= "Toggle selection of all animation channels.";
 	
 	/* api callbacks */
 	ot->exec= animchannels_deselectall_exec;
@@ -1451,6 +1460,7 @@
 	/* identifiers */
 	ot->name= "Border Select";
 	ot->idname= "ANIM_OT_channels_select_border";
+	ot->description= "Select all animation channels within the specified region.";
 	
 	/* api callbacks */
 	ot->invoke= WM_border_select_invoke;
@@ -1857,6 +1867,7 @@
 	/* identifiers */
 	ot->name= "Mouse Click on Channels";
 	ot->idname= "ANIM_OT_channels_click";
+	ot->description= "Handle mouse-clicks over animation channels.";
 	
 	/* api callbacks */
 	ot->invoke= animchannels_mouseclick_invoke;

Modified: branches/blender2.5/blender/source/blender/editors/mesh/meshtools.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/mesh/meshtools.c	2009-07-11 09:14:12 UTC (rev 21516)
+++ branches/blender2.5/blender/source/blender/editors/mesh/meshtools.c	2009-07-11 10:20:48 UTC (rev 21517)
@@ -105,6 +105,11 @@
 
 /* join selected meshes into the active mesh, context sensitive
 return 0 if no join is made (error) and 1 of the join is done */
+
+// XXX NOTE to whoever ports this:
+//	Check the version of this code in the animsys2 branch, which has been nicely commented,
+//	but more importantly has proper support for handling meshes with shapekeys (instead of lamely bailing out)!
+// -- Aligorith, July 2009
 int join_mesh(Scene *scene, View3D *v3d, wmOperator *op)
 {
 	Base *base, *nextb;

Modified: branches/blender2.5/blender/source/blender/editors/space_action/action_edit.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/space_action/action_edit.c	2009-07-11 09:14:12 UTC (rev 21516)
+++ branches/blender2.5/blender/source/blender/editors/space_action/action_edit.c	2009-07-11 10:20:48 UTC (rev 21517)
@@ -101,7 +101,7 @@
 	int filter;
 	
 	/* get data to filter, from Action or Dopesheet */
-	filter= (ANIMFILTER_VISIBLE | ANIMFILTER_SEL | ANIMFILTER_FOREDIT | ANIMFILTER_CURVESONLY);
+	filter= (ANIMFILTER_VISIBLE | ANIMFILTER_SEL | ANIMFILTER_CURVESONLY);
 	ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype);
 	
 	/* set large values to try to override */
@@ -178,6 +178,7 @@
 	/* identifiers */
 	ot->name= "Auto-Set Preview Range";
 	ot->idname= "ACT_OT_previewrange_set";
+	ot->description= "Set Preview Range based on extents of selected Keyframes.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_previewrange_exec;
@@ -225,6 +226,7 @@
 	/* identifiers */
 	ot->name= "View All";
 	ot->idname= "ACT_OT_view_all";
+	ot->description= "Reset viewable area to show full keyframe range.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_viewall_exec;
@@ -309,6 +311,7 @@
 	/* identifiers */
 	ot->name= "Copy Keyframes";
 	ot->idname= "ACT_OT_copy";
+	ot->description= "Copy selected keyframes to the copy/paste buffer.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_copy_exec;
@@ -353,6 +356,7 @@
 	/* identifiers */
 	ot->name= "Paste Keyframes";
 	ot->idname= "ACT_OT_paste";
+	ot->description= "Paste keyframes from copy/paste buffer for the selected channels, starting on the current frame.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_paste_exec;
@@ -449,6 +453,7 @@
 	/* identifiers */
 	ot->name= "Insert Keyframes";
 	ot->idname= "ACT_OT_insert_keyframe";
+	ot->description= "Insert keyframes for the specified channels.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -526,6 +531,7 @@
 	/* identifiers */
 	ot->name= "Duplicate Keyframes";
 	ot->idname= "ACT_OT_duplicate";
+	ot->description= "Make a copy of all selected keyframes.";
 	
 	/* api callbacks */
 	ot->invoke= actkeys_duplicate_invoke;
@@ -593,6 +599,7 @@
 	/* identifiers */
 	ot->name= "Delete Keyframes";
 	ot->idname= "ACT_OT_delete";
+	ot->description= "Remove all selected keyframes.";
 	
 	/* api callbacks */
 	ot->invoke= WM_operator_confirm;
@@ -656,6 +663,7 @@
 	/* identifiers */
 	ot->name= "Clean Keyframes";
 	ot->idname= "ACT_OT_clean";
+	ot->description= "Simplify F-Curves by removing closely spaced keyframes.";
 	
 	/* api callbacks */
 	//ot->invoke=  // XXX we need that number popup for this! 
@@ -780,6 +788,7 @@
 	/* identifiers */
 	ot->name= "Sample Keyframes";
 	ot->idname= "ACT_OT_sample";
+	ot->description= "Add keyframes on every frame between the selected keyframes.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_sample_exec;
@@ -855,6 +864,7 @@
 	/* identifiers */
 	ot->name= "Set Keyframe Extrapolation";
 	ot->idname= "ACT_OT_extrapolation_type";
+	ot->description= "Set extrapolation mode for selected F-Curves.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -925,6 +935,7 @@
 	/* identifiers */
 	ot->name= "Set Keyframe Interpolation";
 	ot->idname= "ACT_OT_interpolation_type";
+	ot->description= "Set interpolation mode for the F-Curve segments starting from the selected keyframes.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -1013,6 +1024,7 @@
 	/* identifiers */
 	ot->name= "Set Keyframe Handle Type";
 	ot->idname= "ACT_OT_handle_type";
+	ot->description= "Set type of handle for selected keyframes.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -1082,6 +1094,7 @@
 	/* identifiers */
 	ot->name= "Jump to Frame";
 	ot->idname= "ACT_OT_frame_jump";
+	ot->description= "Set the current frame to the average frame of the selected keyframes.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_framejump_exec;
@@ -1177,6 +1190,7 @@
 	/* identifiers */
 	ot->name= "Snap Keys";
 	ot->idname= "ACT_OT_snap";
+	ot->description= "Snap selected keyframes to the times specified.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;
@@ -1293,6 +1307,7 @@
 	/* identifiers */
 	ot->name= "Mirror Keys";
 	ot->idname= "ACT_OT_mirror";
+	ot->description= "Flip selected keyframes over the selected mirror line.";
 	
 	/* api callbacks */
 	ot->invoke= WM_menu_invoke;

Modified: branches/blender2.5/blender/source/blender/editors/space_action/action_select.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/space_action/action_select.c	2009-07-11 09:14:12 UTC (rev 21516)
+++ branches/blender2.5/blender/source/blender/editors/space_action/action_select.c	2009-07-11 10:20:48 UTC (rev 21517)
@@ -185,6 +185,7 @@
 	/* identifiers */
 	ot->name= "Select All";
 	ot->idname= "ACT_OT_select_all_toggle";
+	ot->description= "Toggle selection of all keyframes.";
 	
 	/* api callbacks */
 	ot->exec= actkeys_deselectall_exec;
@@ -348,6 +349,7 @@
 	/* identifiers */
 	ot->name= "Border Select";
 	ot->idname= "ACT_OT_select_border";
+	ot->description= "Select all keyframes within the specified region.";
 	
 	/* api callbacks */
 	ot->invoke= WM_border_select_invoke;
@@ -565,6 +567,7 @@
 	/* identifiers */
 	ot->name= "Select All";
 	ot->idname= "ACT_OT_select_column";
+	ot->description= "Select all keyframes on the specified frame(s).";
 	
 	/* api callbacks */
 	ot->exec= actkeys_columnselect_exec;
@@ -969,6 +972,7 @@
 	/* identifiers */
 	ot->name= "Mouse Select Keys";
 	ot->idname= "ACT_OT_clickselect";
+	ot->description= "Select keyframes by clicking on them.";
 	
 	/* api callbacks - absolutely no exec() this yet... */
 	ot->invoke= actkeys_clickselect_invoke;

Modified: branches/blender2.5/blender/source/blender/editors/space_graph/graph_edit.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/space_graph/graph_edit.c	2009-07-11 09:14:12 UTC (rev 21516)
+++ branches/blender2.5/blender/source/blender/editors/space_graph/graph_edit.c	2009-07-11 10:20:48 UTC (rev 21517)
@@ -103,7 +103,7 @@
 	int filter;
 	
 	/* get data to filter, from Dopesheet */

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list