Page MenuHome

blender_source_reversal_patch.txt

Authored By
Shaul Kedem (shul)
Nov 13 2013, 1:06 PM
Size
3 KB
Subscribers
None

blender_source_reversal_patch.txt

Index: makesdna/DNA_sequence_types.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/makesdna/DNA_sequence_types.h,v
retrieving revision 1.16
diff -u -b -B -r1.16 DNA_sequence_types.h
--- makesdna/DNA_sequence_types.h 24 Mar 2005 09:37:06 -0000 1.16
+++ makesdna/DNA_sequence_types.h 31 Jul 2005 06:06:15 -0000
@@ -82,7 +82,7 @@
void (*callback)(void);
} PluginSeq;
-
+/* The sequence structure is the basic struct used by any strip. each of the strips uses a different sequence structure.*/
/* WATCH IT: first part identical to ID (for use in ipo's) */
typedef struct Sequence {
@@ -91,14 +91,14 @@
void *lib;
char name[24];
- short flag, type;
- int len;
- int start, startofs, endofs;
+ short flag, type; /*flags bitmap (see below) and the type of sequence*/
+ int len; /*length of strip, including parts not rendered (because of resizing)*/
+ int start, startofs, endofs; /*startofs is the offset from the beginning of the scene, endofs is the offset of the frames from the end of the scene*/
int startstill, endstill;
int machine, depth;
- int startdisp, enddisp;
+ int startdisp, enddisp; /*starting and ending points in the sequence*/
float mul, handsize;
- int sfra;
+ int sfra; /* starting frame according to the timeline of the scene */
Strip *strip;
StripElem *curelem;
@@ -164,8 +164,9 @@
#define SEQ_FILTERY 16
#define SEQ_MUTE 32
#define SEQ_MAKE_PREMUL 64
+#define SEQ_REVERSE_FRAMES 128
-/* seq->type WATCH IT: BIT 3!!! */
+/* seq->type WATCH IT: SEQ_EFFECT BIT is used to determine if this is an effect strip!!! */
#define SEQ_IMAGE 0
#define SEQ_META 1
#define SEQ_SCENE 2
Index: src/drawseq.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/drawseq.c,v
retrieving revision 1.33
diff -u -b -B -r1.33 drawseq.c
--- src/drawseq.c 24 Mar 2005 09:37:06 -0000 1.33
+++ src/drawseq.c 31 Jul 2005 06:06:18 -0000
@@ -681,7 +681,7 @@
uiDefBut(block, LABEL, 0, "Type: Scene", 10,140,150,20, 0, 0, 0, 0, 0, "");
uiDefBut(block, TEX, B_NOP, "Name: ", 10,120,150,19, last_seq->name+2, 0.0, 21.0, 100, 0, "");
-
+ uiDefButS(block, TOG|BIT|7, SEQ_BUT_RELOAD, "Reverse Frames", 10,90,150,19, &last_seq->flag, 0.0, 21.0, 100, 0, "Reverse frame order");
}
else if(last_seq->type==SEQ_MOVIE) {
Index: src/editseq.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/editseq.c,v
retrieving revision 1.27
diff -u -b -B -r1.27 editseq.c
Index: src/header_info.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/header_info.c,v
retrieving revision 1.65
diff -u -b -B -r1.65 header_info.c
Index: src/sequence.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/sequence.c,v
retrieving revision 1.25
diff -u -b -B -r1.25 sequence.c
--- src/sequence.c 14 Jul 2005 13:50:48 -0000 1.25
+++ src/sequence.c 31 Jul 2005 06:06:29 -0000
@@ -1951,8 +1950,14 @@
doseq= G.scene->r.scemode & R_DOSEQ;
G.scene->r.scemode &= ~R_DOSEQ;
- /* store stuffies */
- oldcfra= CFRA; CFRA= seq->sfra + se->nr;
+ /* store Current FRAme */
+ oldcfra= CFRA;
+ if(seq->flag&SEQ_REVERSE_FRAMES) { /*reverse frame in this sequence */
+ CFRA= (seq->enddisp - seq->startdisp) - ( seq->sfra + se->nr) + 1 + seq->startofs;
+ } else {
+ CFRA= ( seq->sfra + se->nr );
+ }
waitcursor(1);
rectot= R.rectot; R.rectot= NULL;

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f7/25/5531c5b9f4879929a20ca6dc1445

Event Timeline