2.5: Fix crash in sequencer reading code.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Dec 2008 07:53:59 +0000 (07:53 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Dec 2008 07:53:59 +0000 (07:53 +0000)
source/blender/blenloader/intern/readfile.c

index 77380ce6925489b2986e56f73868d901d565e97a..adc7c657019c22a9cd19d116f6315848bc714a11 100644 (file)
@@ -8021,10 +8021,9 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
        if ((main->versionfile < 245) || (main->versionfile == 245 && main->subversionfile < 14)) {
                Scene *sce;
                Sequence *seq;
-               Editing *ed;
                
                for(sce=main->scene.first; sce; sce=sce->id.next) {
-                       SEQ_BEGIN(ed, seq) {
+                       SEQ_BEGIN(sce->ed, seq) {
                                if (seq->blend_mode == 0)
                                        seq->blend_opacity = 100.0;
                        }