[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43715] trunk/blender/source/blender/ editors/space_clip/space_clip.c: Movie clip editor: graph view now can be toggled using Z key

Sergey Sharybin sergey.vfx at gmail.com
Thu Jan 26 10:54:15 CET 2012


Revision: 43715
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43715
Author:   nazgul
Date:     2012-01-26 09:53:58 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Movie clip editor: graph view now can be toggled using Z key

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_clip/space_clip.c

Modified: trunk/blender/source/blender/editors/space_clip/space_clip.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/space_clip.c	2012-01-26 09:29:49 UTC (rev 43714)
+++ trunk/blender/source/blender/editors/space_clip/space_clip.c	2012-01-26 09:53:58 UTC (rev 43715)
@@ -420,6 +420,11 @@
 	RNA_enum_set(kmi->ptr, "mode", SC_MODE_DISTORTION);
 	RNA_boolean_set(kmi->ptr, "toggle", TRUE);
 
+	kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle_enum", ZKEY, KM_PRESS, 0, 0);
+	RNA_string_set(kmi->ptr, "data_path", "space_data.view");
+	RNA_string_set(kmi->ptr, "value_1", "CLIP");
+	RNA_string_set(kmi->ptr, "value_2", "GRAPH");
+
 	/* ******** Hotkeys avalaible for main region only ******** */
 
 	keymap= WM_keymap_find(keyconf, "Clip Editor", SPACE_CLIP, 0);



More information about the Bf-blender-cvs mailing list