diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-05-15 18:39:07 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-05-15 18:39:07 +0300 |
commit | ddae9c92326486c5c95613bc0b7bb46e2d9bc261 (patch) | |
tree | 4f13d4fa5d23e67def7ed0bd3da71db8e946fb18 | |
parent | 9c5bec0292d23efb626260027ed826831faefc83 (diff) |
Fix T64634: Incorrect type casting in versioning code
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 526931d1a45..d8f133c7465 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -3376,12 +3376,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { - if (ELEM(sa->spacetype, SPACE_CLIP, SPACE_GRAPH, SPACE_SEQ)) { - for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { + for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { + if (ELEM(sl->spacetype, SPACE_CLIP, SPACE_GRAPH, SPACE_SEQ)) { ListBase *regionbase = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase; ARegion *ar = NULL; - if (sa->spacetype == SPACE_CLIP) { + if (sl->spacetype == SPACE_CLIP) { if (((SpaceClip *)sl)->view == SC_VIEW_GRAPH) { ar = do_versions_find_region(regionbase, RGN_TYPE_PREVIEW); } |