[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44039] trunk/blender/source/blender/ editors/space_sequencer/sequencer_add.c: Fix [#30136] Adding Sequence Plugin fails.
Bastien Montagne
montagne29 at wanadoo.fr
Sat Feb 11 17:08:48 CET 2012
Revision: 44039
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44039
Author: mont29
Date: 2012-02-11 16:08:45 +0000 (Sat, 11 Feb 2012)
Log Message:
-----------
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...
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c
Modified: trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c
===================================================================
--- trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c 2012-02-11 15:49:25 UTC (rev 44038)
+++ trunk/blender/source/blender/editors/space_sequencer/sequencer_add.c 2012-02-11 16:08:45 UTC (rev 44039)
@@ -713,7 +713,8 @@
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);
More information about the Bf-blender-cvs
mailing list