diff options
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_add.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c index c4c3701a18a..4d51ac05fbd 100644 --- a/source/blender/editors/space_sequencer/sequencer_add.c +++ b/source/blender/editors/space_sequencer/sequencer_add.c @@ -352,6 +352,10 @@ static int sequencer_add_movie_strip_invoke(bContext *C, wmOperator *op, wmEvent if(!RNA_property_is_set(op->ptr, "relative_path")) RNA_boolean_set(op->ptr, "relative_path", U.flag & USER_RELPATHS); + /* This is for drag and drop */ + if(RNA_property_is_set(op->ptr, "filepath")) + return sequencer_add_movie_strip_exec(C, op); + sequencer_generic_invoke_xy__internal(C, op, event, 0); WM_event_add_fileselect(C, op); @@ -403,6 +407,10 @@ static int sequencer_add_sound_strip_invoke(bContext *C, wmOperator *op, wmEvent if(!RNA_property_is_set(op->ptr, "relative_path")) RNA_boolean_set(op->ptr, "relative_path", U.flag & USER_RELPATHS); + /* This is for drag and drop */ + if(RNA_property_is_set(op->ptr, "filepath")) + return sequencer_add_sound_strip_exec(C, op); + sequencer_generic_invoke_xy__internal(C, op, event, 0); WM_event_add_fileselect(C, op); |