From ebf197724eb422eea095dd52eac8ea310f5cf758 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 23 Oct 2015 04:54:07 +1100 Subject: Version Bump: 2.76.2, deprecate values - RegionView3D.view RV3D_VIEW_PERSPORTHO only ever set on initialization, never checked for. - Lamp.type LA_YF_PHOTON from old 2.4x yafray files. Also iniitalize movie-clip + grease-pencil theme colors. --- source/blender/blenloader/intern/versioning_270.c | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'source/blender/blenloader/intern/versioning_270.c') diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index 1f4aa3c9f3c..16635851032 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -867,5 +867,46 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main) } } } + + { + bScreen *screen; +#define RV3D_VIEW_PERSPORTHO 7 + for (screen = main->screen.first; screen; screen = screen->id.next) { + ScrArea *sa; + for (sa = screen->areabase.first; sa; sa = sa->next) { + SpaceLink *sl; + for (sl = sa->spacedata.first; sl; sl = sl->next) { + if (sl->spacetype == SPACE_VIEW3D) { + ARegion *ar; + ListBase *lb = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase; + for (ar = lb->first; ar; ar = ar->next) { + if (ar->regiontype == RGN_TYPE_WINDOW) { + if (ar->regiondata) { + RegionView3D *rv3d = ar->regiondata; + if (rv3d->view == RV3D_VIEW_PERSPORTHO) { + rv3d->view = RV3D_VIEW_USER; + } + } + } + } + break; + } + } + } + } +#undef RV3D_VIEW_PERSPORTHO + } + + { + Lamp *lamp; +#define LA_YF_PHOTON 5 + for (lamp = main->lamp.first; lamp; lamp = lamp->id.next) { + if (lamp->type == LA_YF_PHOTON) { + lamp->type = LA_LOCAL; + } + } +#undef LA_YF_PHOTON + } + } } -- cgit v1.2.3