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-24 16:50:20 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-24 16:50:20 +0400
commite5f6a41b1b7125a4c3bc7ef2554c04b768ac765c (patch)
tree7d3aead63393f285bbd62f10cb8e5fd1743fbd42 /source/blender/editors/space_nla/nla_ops.c
parent3533cda80c7b52f8ffca3e3928bedb5bfa96b320 (diff)
NLA SoC: Scale Operators - Clear (Alt-S) and Apply (Ctrl-A)
These two operators work only on Action-Clip strips. * Clear (Alt-S) resets the scale of selected strips to 1.0 * Apply (Ctrl-A) applies the scale of the selected strips to their referenced Actions. If this referenced Action is also used by several other strips, a copy of the Action is made, and the scaling is applied to that Action instead.
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 2a6a0c64ea9..531e049d29a 100644
--- a/source/blender/editors/space_nla/nla_ops.c
+++ b/source/blender/editors/space_nla/nla_ops.c
@@ -149,6 +149,9 @@ void nla_operatortypes(void)
WM_operatortype_append(NLAEDIT_OT_duplicate);
WM_operatortype_append(NLAEDIT_OT_delete);
WM_operatortype_append(NLAEDIT_OT_split);
+
+ WM_operatortype_append(NLAEDIT_OT_apply_scale);
+ WM_operatortype_append(NLAEDIT_OT_clear_scale);
}
/* ************************** registration - keymaps **********************************/
@@ -239,6 +242,10 @@ static void nla_keymap_main (wmWindowManager *wm, ListBase *keymap)
/* split */
WM_keymap_add_item(keymap, "NLAEDIT_OT_split", YKEY, KM_PRESS, 0, 0);
+ /* apply scale */
+ WM_keymap_add_item(keymap, "NLAEDIT_OT_apply_scale", AKEY, KM_PRESS, KM_CTRL, 0);
+ WM_keymap_add_item(keymap, "NLAEDIT_OT_clear_scale", SKEY, KM_PRESS, KM_ALT, 0);
+
/* transform system */
transform_keymap_for_space(wm, keymap, SPACE_NLA);
}