Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-06-07 15:37:15 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-07 15:37:15 +0400
commit019baf8b8fc0cae24b8706a557a296e598290615 (patch)
tree120068ed8a6c703d29153be41725fe41a5f2b4ed /source/blender/editors/space_nla/nla_ops.c
parent43c7c15e2be555454f54840307fd5ea7d61d0216 (diff)
NLA SoC: Adding skeleton code for a buttons region in NLA
If anyone's doing any testing at this point, please check if this works ok for files with new/old NLA Editors, as I was having some problems with one of my testing (saved from this branch) files with this.
Diffstat (limited to 'source/blender/editors/space_nla/nla_ops.c')
-rw-r--r--source/blender/editors/space_nla/nla_ops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c
index 057e4b05656..f59cbd9c1d4 100644
--- a/source/blender/editors/space_nla/nla_ops.c
+++ b/source/blender/editors/space_nla/nla_ops.c
@@ -115,6 +115,9 @@ int nlaop_poll_tweakmode_on (bContext *C)
void nla_operatortypes(void)
{
+ /* view */
+ WM_operatortype_append(NLAEDIT_OT_properties);
+
/* channels */
WM_operatortype_append(NLA_OT_channels_click);
WM_operatortype_append(NLA_OT_channels_select_border);
@@ -197,6 +200,10 @@ void nla_keymap(wmWindowManager *wm)
{
ListBase *keymap;
+ /* keymap for all regions */
+ keymap= WM_keymap_listbase(wm, "NLA Generic", SPACE_NLA, 0);
+ WM_keymap_add_item(keymap, "NLAEDIT_OT_properties", NKEY, KM_PRESS, 0, 0);
+
/* channels */
/* Channels are not directly handled by the NLA Editor module, but are inherited from the Animation module.
* Most of the relevant operations, keymaps, drawing, etc. can therefore all be found in that module instead, as there