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-10-20 01:34:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-10-20 01:34:38 +0400
commitfcc27ca8aabc272df8f0e2a15c1d35ced6c45863 (patch)
treeaed96f6ff686ecc2655c8e49d62ead456d9afc94 /source/blender/editors/space_sequencer/sequencer_edit.c
parent059d4f181cf2b0dfe735bbbcc35fa945ee466cc8 (diff)
separate image strip length popup
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_edit.c')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 4e71e4883d1..80b018eec66 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -1970,11 +1970,7 @@ static int sequencer_separate_images_exec(bContext *C, wmOperator *op)
Strip *strip_new;
StripElem *se, *se_new;
int start_ofs, cfra, frame_end;
- static int step= 1;
-
-// add_numbut(0, NUM|INT, "Image Duration:", 1, 256, &step, NULL);
-// if (!do_clever_numbuts("Separate Images", 1, REDRAW))
-// return;
+ int step= RNA_int_get(op->ptr, "length");
if(ed==NULL)
return OPERATOR_CANCELLED;
@@ -2044,13 +2040,15 @@ void SEQUENCER_OT_images_separate(wmOperatorType *ot)
ot->description="On image sequences strips, it return a strip for each image.";
/* api callbacks */
- ot->invoke= WM_operator_confirm;
+ ot->invoke= WM_operator_props_popup;
ot->exec= sequencer_separate_images_exec;
ot->poll= ED_operator_sequencer_active;
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+
+ RNA_def_int(ot->srna, "length", 1, 1, 1000, "Length", "Length of each frame", 1, INT_MAX);
}