[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14196] trunk/blender/source/blender/src/ editseq.c: == Sequencer ==
Peter Schlaile
peter at schlaile.de
Fri Mar 21 11:54:40 CET 2008
Revision: 14196
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14196
Author: schlaile
Date: 2008-03-21 11:54:40 +0100 (Fri, 21 Mar 2008)
Log Message:
-----------
== Sequencer ==
Forgot REDRAW in obscure cases...
Modified Paths:
--------------
trunk/blender/source/blender/src/editseq.c
Modified: trunk/blender/source/blender/src/editseq.c
===================================================================
--- trunk/blender/source/blender/src/editseq.c 2008-03-21 10:47:59 UTC (rev 14195)
+++ trunk/blender/source/blender/src/editseq.c 2008-03-21 10:54:40 UTC (rev 14196)
@@ -2374,8 +2374,9 @@
/* like duplicate, but only duplicate and cut overlapping strips,
* strips to the left of the cutframe are ignored and strips to the right are moved into the new list */
-static void cut_seq_list(ListBase *old, ListBase *new, int cutframe)
+static int cut_seq_list(ListBase *old, ListBase *new, int cutframe)
{
+ int did_something = FALSE;
Sequence *seq, *seq_next;
seq= old->first;
@@ -2391,6 +2392,7 @@
if (seqn) {
BLI_addtail(new, seqn);
}
+ did_something = TRUE;
} else if (seq->enddisp <= cutframe) {
/* do nothing */
} else if (seq->startdisp >= cutframe) {
@@ -2401,6 +2403,7 @@
}
seq = seq_next;
}
+ return did_something;
}
void seq_cut(int cutframe)
@@ -2408,14 +2411,16 @@
Editing *ed;
ListBase newlist;
char side;
+ int did_something;
+
ed= G.scene->ed;
if(ed==0) return;
newlist.first= newlist.last= NULL;
- cut_seq_list(ed->seqbasep, &newlist, cutframe);
+ did_something = cut_seq_list(ed->seqbasep, &newlist, cutframe);
- if (newlist.first) { /* simple check to see if anything was done */
+ if (newlist.first) { /* got new strips ? */
Sequence *seq;
addlisttolist(ed->seqbasep, &newlist);
@@ -2438,7 +2443,8 @@
/* as last: */
sort_seq();
-
+ }
+ if (did_something) {
allqueue(REDRAWSEQ, 0);
BIF_undo_push("Cut Strips, Sequencer");
}
More information about the Bf-blender-cvs
mailing list