This commit is contained in:
Brecht Van Lommel 2009-08-19 09:35:22 +00:00
parent 9b25a3bb2a
commit e611c4756f
2 changed files with 6 additions and 2 deletions

@ -197,7 +197,7 @@ def is_tricyl_facegroup(faces):
is the face group a tri cylinder is the face group a tri cylinder
Returens a bool, true if the faces make an extruded tri solid Returens a bool, true if the faces make an extruded tri solid
''' '''
return False
# cube must have 5 faces # cube must have 5 faces
if len(faces) != 5: if len(faces) != 5:
print '1' print '1'

@ -2792,6 +2792,10 @@ void sequence_effect_speed_rebuild_map(Sequence * seq, int force)
if (!(force || seq->len != v->length || !v->frameMap)) { if (!(force || seq->len != v->length || !v->frameMap)) {
return; return;
} }
if (!seq->seq1) { /* make coverity happy and check for (CID 598)
input strip ... */
return;
}
if (!v->frameMap || v->length != seq->len) { if (!v->frameMap || v->length != seq->len) {
if (v->frameMap) MEM_freeN(v->frameMap); if (v->frameMap) MEM_freeN(v->frameMap);
@ -2807,7 +2811,7 @@ void sequence_effect_speed_rebuild_map(Sequence * seq, int force)
/* if there is no IPO, try to make retiming easy by stretching the /* if there is no IPO, try to make retiming easy by stretching the
strip */ strip */
// XXX old animation system - seq // XXX old animation system - seq
if (/*!seq->ipo &&*/ seq->seq1 && seq->seq1->enddisp != seq->seq1->start if (/*!seq->ipo &&*/ seq->seq1->enddisp != seq->seq1->start
&& seq->seq1->len != 0) { && seq->seq1->len != 0) {
fallback_fac = (float) seq->seq1->len / fallback_fac = (float) seq->seq1->len /
(float) (seq->seq1->enddisp - seq->seq1->start); (float) (seq->seq1->enddisp - seq->seq1->start);