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-11-08 16:02:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-11-08 16:02:59 +0300
commit40f871c07f7d6f2bd5696ea0585380a30beb8161 (patch)
tree6c708fb864625ba7c3d79be5edb2bb59c68ce492 /source/blender/src/editseq.c
parent0100ebe2302d5ed36c4f4258e779e81a7e7bec66 (diff)
* new stamp option to stamp forground sequence strip name.
* made stamp filename optional * renamed weightpaint "Filter" to "Blur" * made the defailt weightpaint opacity 1.0 rather then 0.2 so when you select 1.0 weight you can paint it with without multiple clicks.
Diffstat (limited to 'source/blender/src/editseq.c')
-rw-r--r--source/blender/src/editseq.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c
index eed3145284c..737e7e1a4bf 100644
--- a/source/blender/src/editseq.c
+++ b/source/blender/src/editseq.c
@@ -145,6 +145,27 @@ void clear_last_seq(Sequence *seq)
_last_seq_init = 0;
}
+Sequence *get_forground_frame_seq(int frame)
+{
+ Editing *ed;
+ Sequence *seq, *best_seq=NULL;
+ int best_machine = -1;
+ ed= G.scene->ed;
+ if(!ed) return NULL;
+
+ for (seq=ed->seqbasep->first; seq; seq= seq->next) {
+ if(seq->startdisp > frame || seq->enddisp <= frame)
+ continue;
+ /* only use elements you can see - not */
+ if (ELEM6(seq->type, SEQ_IMAGE, SEQ_META, SEQ_SCENE, SEQ_MOVIE, SEQ_MOVIE_AND_HD_SOUND, SEQ_COLOR)) {
+ if (seq->machine > best_machine) {
+ best_seq = seq;
+ best_machine = seq->machine;
+ }
+ }
+ }
+ return best_seq;
+}
/* seq funcs's for transforming internally
notice the difference between start/end and left/right.