From 7d3c88772b4cdf9cec8966390e84bdd21802395f Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 11 Feb 2009 12:19:42 +0000 Subject: Keying Sets: Initial commit of skeleton code When fully implemented, these will be the clearest demonstration of 'Everything is Animateable', as they will allow users to define an arbitary group of settings through selecting items in the Datablocks (RNA-Viewer) View of the Outliner to define custom 'sets'. Such Keying Sets are known as the 'absolute' ones, which are created for a custom purpose. Of course, 'builtin' Keying Sets will still be provided. Such built-in ones will not work on any particular paths, but will use context info to maintain the legacy method of inserting keyframes (via IKEY menu). Currently, KeyingSets cannot be created/edited through the UI, though the backend code is in place to do this. --- source/blender/editors/space_outliner/outliner_ops.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/editors/space_outliner/outliner_ops.c') diff --git a/source/blender/editors/space_outliner/outliner_ops.c b/source/blender/editors/space_outliner/outliner_ops.c index 7d1155cb5d7..295d7ade97c 100644 --- a/source/blender/editors/space_outliner/outliner_ops.c +++ b/source/blender/editors/space_outliner/outliner_ops.c @@ -44,6 +44,9 @@ void outliner_operatortypes(void) { WM_operatortype_append(OUTLINER_OT_activate_click); + + WM_operatortype_append(OUTLINER_OT_keyingset_add_selected); + WM_operatortype_append(OUTLINER_OT_keyingset_remove_selected); } void outliner_keymap(wmWindowManager *wm) @@ -51,6 +54,10 @@ void outliner_keymap(wmWindowManager *wm) ListBase *keymap= WM_keymap_listbase(wm, "Outliner", SPACE_OOPS, 0); WM_keymap_verify_item(keymap, "OUTLINER_OT_activate_click", LEFTMOUSE, KM_PRESS, 0, 0); + + /* keying sets - only for databrowse */ + WM_keymap_verify_item(keymap, "OUTLINER_OT_keyingset_add_selected", KKEY, KM_PRESS, 0, 0); + WM_keymap_verify_item(keymap, "OUTLINER_OT_keyingset_remove_selected", KKEY, KM_PRESS, KM_ALT, 0); } -- cgit v1.2.3