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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-03-27 02:26:30 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-03-27 02:26:30 +0400
commit40c667e75e4e3bfa0bcbdbc678d72df061764aeb (patch)
tree4fb3ddace93e61452ad15bf97ef921117d934afb /source/blender/editors/space_sequencer/sequencer_ops.c
parent83e83e5eff1a19748c11d234bb903973f80fc1aa (diff)
Clean-up logic of behavior of refresh/reload operators in sequencer
After discussion with Campbell we found much nicer solution which keeps operation with data much more clear: - Refresh Sequencer is totally harmless, do not touch actual data and just removes everything from cache - Reload Strip will reload data and adjust it's length for all selected strips without affecting on length of strip itself - Reload Strip and Adjust length will do the same but will also adjust length of strip itself.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_ops.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_ops.c b/source/blender/editors/space_sequencer/sequencer_ops.c
index c0f1bd219f2..797d6fa36b8 100644
--- a/source/blender/editors/space_sequencer/sequencer_ops.c
+++ b/source/blender/editors/space_sequencer/sequencer_ops.c
@@ -159,7 +159,10 @@ void sequencer_keymap(wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "SEQUENCER_OT_unlock", LKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
WM_keymap_add_item(keymap, "SEQUENCER_OT_reassign_inputs", RKEY, KM_PRESS, 0, 0);
+
WM_keymap_add_item(keymap, "SEQUENCER_OT_reload", RKEY, KM_PRESS, KM_ALT, 0);
+ kmi = WM_keymap_add_item(keymap, "SEQUENCER_OT_reload", RKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
+ RNA_boolean_set(kmi->ptr, "adjust_length", TRUE);
WM_keymap_add_item(keymap, "SEQUENCER_OT_offset_clear", OKEY, KM_PRESS, KM_ALT, 0);