diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-09 21:08:14 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-09 21:08:14 +0300 |
commit | 1d53b78036601c2112e3cdcf26c8affb9f1bc95c (patch) | |
tree | a190a32dffa1285fe1c099d49f123f0da5bea093 /source | |
parent | 1601f297c984fd437cb70cebf738bbda199b54f8 (diff) |
Fix compile problem (warnings are important)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/sequence.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/sequence.c b/source/blender/blenkernel/intern/sequence.c index bb1096c9e7e..71382a53d5d 100644 --- a/source/blender/blenkernel/intern/sequence.c +++ b/source/blender/blenkernel/intern/sequence.c @@ -3533,13 +3533,14 @@ void seq_update_muting(Editing *ed) /* XXX - hackish function needed for transforming strips! TODO - have some better solution */ void seq_offset_animdata(Scene *scene, Sequence *seq, int ofs) { + char str[32]; + FCurve *fcu; + if(scene->adt==NULL || ofs==0) return; - char str[32]; sprintf(str, "[\"%s\"]", seq->name+2); - FCurve *fcu; for (fcu= scene->adt->action->curves.first; fcu; fcu= fcu->next) { if(strstr(fcu->rna_path, "sequence_editor.sequences_all[") && strstr(fcu->rna_path, str)) { int i; |