Markers: Make marker lines in sequencer and graph editor optional
[blender.git] / source / blender / blenloader / intern / versioning_280.c
index 154abbab04a4f5db268cbf8810509d950b91a7d1..cfba6f803c9d4974d5f1469ff826d7feb86f558e 100644 (file)
@@ -2804,8 +2804,20 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
                }
        }
 
+       if (!MAIN_VERSION_ATLEAST(bmain, 280, 45)) {
+               for (bScreen *screen = bmain->screen.first; screen; screen = screen->id.next) {
+                       for (ScrArea *area = screen->areabase.first; area; area = area->next) {
+                               for (SpaceLink *sl = area->spacedata.first; sl; sl = sl->next) {
+                                       if (sl->spacetype == SPACE_SEQ) {
+                                               SpaceSeq *sseq = (SpaceSeq *)sl;
+                                               sseq->flag |= SEQ_SHOW_MARKER_LINES;
+                                       }
+                               }
+                       }
+               }
+       }
+
        {
                /* Versioning code until next subversion bump goes here. */
-
        }
 }