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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-02-11 20:08:45 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-02-11 20:08:45 +0400
commit24fc50907d811823c2d78fd03080376b0089c6e9 (patch)
tree723248f4382e63fd77f2146bbdb2a6cad9e2370e
parent2956ea22f28be1a729ba0dc6d229c6b099e58dd1 (diff)
Fix [#30136] Adding Sequence Plugin fails.
Problem was in how file selector is called by the effect_strip_add operator invoke. WM_operator_filesel() is not suited, as it directly calls exec if filepath is already set, and sequencer_generic_invoke_xy__internal() will set that path unless otherwise told. So using rather the same way to do as the one used by the other "strip_add" operators...
-rw-r--r--source/blender/editors/space_sequencer/sequencer_add.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c
index 9aed4b3d78a..03fd22d1045 100644
--- a/source/blender/editors/space_sequencer/sequencer_add.c
+++ b/source/blender/editors/space_sequencer/sequencer_add.c
@@ -713,7 +713,8 @@ static int sequencer_add_effect_strip_invoke(bContext *C, wmOperator *op, wmEven
if (is_type_set && type==SEQ_PLUGIN) {
/* only plugins need the file selector */
- return WM_operator_filesel(C, op, event);
+ WM_event_add_fileselect(C, op);
+ return OPERATOR_RUNNING_MODAL;
}
else {
return sequencer_add_effect_strip_exec(C, op);