Fix T64634: Incorrect type casting in versioning code

This commit is contained in:
Jacques Lucke 2019-05-15 17:39:07 +02:00
parent 9c5bec0292
commit ddae9c9232
Notes: blender-bot 2023-02-14 02:38:45 +01:00
Referenced by issue #64634, Blenloader/CTest Crash on cycles Lights-Portal test.
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}