source/blender/blenloader/intern/readfile.c
static void link_global(FileData *fd, BlendFileData *bfd)
{
  bfd->cur_view_layer = newglobadr(fd, bfd->cur_view_layer);
  bfd->curscreen = newlibadr(fd, NULL, bfd->curscreen);
  bfd->curscene = newlibadr(fd, NULL, bfd->curscene);
  // this happens in files older than 2.35
  if (bfd->curscene == NULL) {
    if (bfd->curscreen) {
      bfd->curscene = bfd->curscreen->scene;
    }
  }
}
/* note, this has to be kept for reading older files... */
note, this has to be kept for reading older files
note this has to be kept for reading older files
static void link_global(FileData *fd, BlendFileData *bfd)
{
  bfd->cur_view_layer = newglobadr(fd, bfd->cur_view_layer);
  bfd->curscreen = newlibadr(fd, NULL, bfd->curscreen);
  bfd->curscene = newlibadr(fd, NULL, bfd->curscene);
  if (bfd->curscene == NULL) {
    if (bfd->curscreen) {
      bfd->curscene = bfd->curscreen->scene;
    }
  }
}
static void link_global ( FileData * fd , BlendFileData * bfd ) { bfd -> cur_view_layer = newglobadr ( fd , bfd -> cur_view_layer ) ; bfd -> curscreen = newlibadr ( fd , NULL , bfd -> curscreen ) ; bfd -> curscene = newlibadr ( fd , NULL , bfd -> curscene ) ; if ( bfd -> curscene == NULL ) { if ( bfd -> curscreen ) { bfd -> curscene = bfd -> curscreen -> scene ; } } }
note, this has to be kept for reading older files...
note this has to be kept for reading older files ...
// this happens in files older than 2.35