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:
authorCampbell Barton <ideasman42@gmail.com>2009-06-05 20:11:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-05 20:11:35 +0400
commit07b3e41e18611cc5c7206d1400303104f73054fc (patch)
tree24114223e4430dcd5bd95560965797c85bce3529 /source/blender/windowmanager
parent45ed196344a7534c9965015ca653c90f5f00d97f (diff)
Blender file selector support for setting multiple selected files/dirs which operators can use.
This allows the sequencers Add-Image strip to work like it does in 2.4x. - as well as setting the "filename" operator property, operators can have collections called "files" and "dirs" which are set when available. - RNA_OperatorFileListElement as new collection type, its a bit redundant since each item only has a "name" property but its needed since we don't have a string array type. - the file selector now prints operators it runs. Tested with python, adding a list of images works to the sequencer works. bpy.ops.SEQUENCER_OT_image_strip_add(name="MyImages", start_frame=54, channel=2, filename="/somedir/", replace_sel=True, files=[{"name":"test1.png"}, {"name":"test2.png"}])
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index fc0f1496c6a..53f70f6ab8f 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -826,7 +826,12 @@ static int wm_handler_fileselect_call(bContext *C, ListBase *handlers, wmEventHa
uiPupMenuSaveOver(C, handler->op, path);
}
else {
- handler->op->type->exec(C, handler->op);
+ int retval= handler->op->type->exec(C, handler->op);
+
+ if (retval & OPERATOR_FINISHED)
+ if(G.f & G_DEBUG)
+ wm_operator_print(handler->op);
+
WM_operator_free(handler->op);
}