diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-09 12:31:45 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-09 12:31:45 +0300 |
commit | 7dee0e2540f54f7dded142ff073129fb06487984 (patch) | |
tree | f73352b5aa7517e8b1503a67c3312d5041dfcded /source/blender | |
parent | 35996857b85355cdf7bffb19afcde08b5c4915f3 (diff) |
Bugfix #21032: sound strips could not be drag-n-dropped from filebrowser to sequencer
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_sequencer/space_sequencer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index 99492272340..cb811d98fc9 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -320,6 +320,14 @@ static int movie_drop_poll(bContext *C, wmDrag *drag, wmEvent *event) return 0; } +static int sound_drop_poll(bContext *C, wmDrag *drag, wmEvent *event) +{ + if(drag->type==WM_DRAG_PATH) + if(ELEM(drag->icon, ICON_FILE_SOUND, ICON_FILE_BLANK)) /* rule might not work? */ + return 1; + return 0; +} + static void sequencer_drop_copy(wmDrag *drag, wmDropBox *drop) { /* copy drag path to properties */ @@ -333,6 +341,7 @@ static void sequencer_dropboxes(void) WM_dropbox_add(lb, "SEQUENCER_OT_image_strip_add", image_drop_poll, sequencer_drop_copy); WM_dropbox_add(lb, "SEQUENCER_OT_movie_strip_add", movie_drop_poll, sequencer_drop_copy); + WM_dropbox_add(lb, "SEQUENCER_OT_sound_strip_add", sound_drop_poll, sequencer_drop_copy); } /* ************* end drop *********** */ |