Sequencer: switching to preview mode works fine again
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Sep 2011 13:12:54 +0000 (13:12 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Sep 2011 13:12:54 +0000 (13:12 +0000)
source/blender/editors/space_sequencer/space_sequencer.c

index 5a0369e..5c2013e 100644 (file)
@@ -223,11 +223,11 @@ static void sequencer_refresh(const bContext *C, ScrArea *sa)
                                WM_event_remove_handlers((bContext*)C, &ar_preview->handlers);
                                view_changed= 1;
                        }
-                       if (ar_main && ar_main->alignment != RGN_ALIGN_TOP) {
+                       if (ar_main && ar_main->alignment != RGN_ALIGN_NONE) {
                                ar_main->alignment= RGN_ALIGN_NONE;
                                view_changed= 1;
                        }
-                       if (ar_preview && ar_preview->alignment != RGN_ALIGN_TOP) {
+                       if (ar_preview && ar_preview->alignment != RGN_ALIGN_NONE) {
                                ar_preview->alignment= RGN_ALIGN_NONE;
                                view_changed= 1;
                        }
@@ -245,11 +245,11 @@ static void sequencer_refresh(const bContext *C, ScrArea *sa)
                                ar_preview->v2d.cur = ar_preview->v2d.tot;
                                view_changed= 1;
                        }
-                       if (ar_main && ar_main->alignment != RGN_ALIGN_TOP) {
+                       if (ar_main && ar_main->alignment != RGN_ALIGN_NONE) {
                                ar_main->alignment= RGN_ALIGN_NONE;
                                view_changed= 1;
                        }
-                       if (ar_preview && ar_preview->alignment != RGN_ALIGN_TOP) {
+                       if (ar_preview && ar_preview->alignment != RGN_ALIGN_NONE) {
                                ar_preview->alignment= RGN_ALIGN_NONE;
                                view_changed= 1;
                        }
@@ -266,7 +266,7 @@ static void sequencer_refresh(const bContext *C, ScrArea *sa)
                                ar_preview->v2d.cur = ar_preview->v2d.tot;
                                view_changed= 1;
                        }
-                       if (ar_main && ar_main->alignment != RGN_ALIGN_TOP) {
+                       if (ar_main && ar_main->alignment != RGN_ALIGN_NONE) {
                                ar_main->alignment= RGN_ALIGN_NONE;
                                view_changed= 1;
                        }