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>2007-10-23 23:30:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-10-23 23:30:22 +0400
commit298707e5f6e4b9ee96506ac95edc9d2e7d3ee401 (patch)
tree049891a6c916e8a4bdc55ee5da1b08160c08d854 /source/blender/src/editseq.c
parent6210fe5ad6098a6f6500f6aacf2bf84c55cae721 (diff)
made color generated strips work like single image strips - no center frame limitation
Diffstat (limited to 'source/blender/src/editseq.c')
-rw-r--r--source/blender/src/editseq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c
index 5dd6bdde6c9..87b963a0bd7 100644
--- a/source/blender/src/editseq.c
+++ b/source/blender/src/editseq.c
@@ -220,9 +220,9 @@ int seq_tx_check_right(Sequence *seq)
/* used so we can do a quick check for single image seq
since they work a bit differently to normal image seq's (during transform) */
-int check_single_image_seq(Sequence *seq)
+int check_single_seq(Sequence *seq)
{
- if (seq->type == SEQ_IMAGE && seq->len == 1 )
+ if ( seq->len==1 && (seq->type == SEQ_IMAGE || seq->type == SEQ_COLOR))
return 1;
else
return 0;
@@ -231,7 +231,7 @@ int check_single_image_seq(Sequence *seq)
static void fix_single_image_seq(Sequence *seq)
{
int left, start, offset;
- if (!check_single_image_seq(seq))
+ if (!check_single_seq(seq))
return;
/* make sure the image is always at the start since there is only one,
@@ -2673,7 +2673,7 @@ static void transform_grab_xlimits(Sequence *seq, int leftflag, int rightflag)
seq_tx_set_final_left(seq, seq_tx_get_final_right(seq)-1);
}
- if (check_single_image_seq(seq)==0) {
+ if (check_single_seq(seq)==0) {
if (seq_tx_get_final_left(seq) >= seq_tx_get_end(seq)) {
seq_tx_set_final_left(seq, seq_tx_get_end(seq)-1);
}
@@ -2695,7 +2695,7 @@ static void transform_grab_xlimits(Sequence *seq, int leftflag, int rightflag)
seq_tx_set_final_right(seq, seq_tx_get_final_left(seq)+1);
}
- if (check_single_image_seq(seq)==0) {
+ if (check_single_seq(seq)==0) {
if (seq_tx_get_final_right(seq) <= seq_tx_get_start(seq)) {
seq_tx_set_final_right(seq, seq_tx_get_start(seq)+1);
}