diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-22 20:54:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-22 20:56:37 +0300 |
commit | ebf197724eb422eea095dd52eac8ea310f5cf758 (patch) | |
tree | 8bf673b3be5515f2053378ba2a540e3564ec20c1 /source/blender/blenloader/intern | |
parent | 47b1279762dd07cdef4570e077459497f48e4fb8 (diff) |
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.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 41 |
1 files changed, 41 insertions, 0 deletions
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 + } + } } |