Fix changing view in default video editing layout broken

Own mistake in 802bb42267
Apparently we only store one preview region for all views, didn't know that (makes sense though).
This commit is contained in:
Julian Eisel 2016-03-27 13:17:10 +02:00
parent ce71e2e789
commit 9c2704c169
1 changed files with 2 additions and 2 deletions

View File

@ -1080,8 +1080,8 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
for (ARegion *ar = lb->first; ar; ar = ar->next) {
/* remove preview region for sequencer-only view! */
if (ar->regiontype == RGN_TYPE_PREVIEW) {
BKE_area_region_free(NULL, ar);
BLI_freelinkN(lb, ar);
ar->flag |= RGN_FLAG_HIDDEN;
ar->alignment = RGN_ALIGN_NONE;
break;
}
}