== Sequencer ==
Silently destroyed a null check in free_sequence in last commit, getting old... :)
This commit is contained in:
@@ -114,7 +114,9 @@ void free_strip(Strip *strip)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MEM_freeN(strip->stripdata);
|
if (strip->stripdata) {
|
||||||
|
MEM_freeN(strip->stripdata);
|
||||||
|
}
|
||||||
|
|
||||||
if (strip->proxy) {
|
if (strip->proxy) {
|
||||||
MEM_freeN(strip->proxy);
|
MEM_freeN(strip->proxy);
|
||||||
@@ -1021,6 +1023,10 @@ static int seq_proxy_get_fname(Sequence * seq, int cfra, char * name)
|
|||||||
int frameno;
|
int frameno;
|
||||||
char dir[FILE_MAXDIR];
|
char dir[FILE_MAXDIR];
|
||||||
|
|
||||||
|
if (!seq->strip->proxy) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (seq->flag & SEQ_USE_PROXY_CUSTOM_DIR) {
|
if (seq->flag & SEQ_USE_PROXY_CUSTOM_DIR) {
|
||||||
strcpy(dir, seq->strip->proxy->dir);
|
strcpy(dir, seq->strip->proxy->dir);
|
||||||
} else {
|
} else {
|
||||||
@@ -1056,11 +1062,6 @@ static int seq_proxy_get_fname(Sequence * seq, int cfra, char * name)
|
|||||||
G.scene->r.size);
|
G.scene->r.size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seq->strip->proxy == 0) {
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BLI_convertstringcode(name, G.sce, frameno);
|
BLI_convertstringcode(name, G.sce, frameno);
|
||||||
|
|
||||||
strcat(name, ".jpg");
|
strcat(name, ".jpg");
|
||||||
|
|||||||
Reference in New Issue
Block a user