diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-04-24 13:11:31 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-04-24 13:25:41 +0300 |
commit | 08e4808318f143b1489a91259784c51b01cede19 (patch) | |
tree | b4973a6724007d6922ffba320b8a51df04ca64ca /source/blender/blenloader | |
parent | 24bde1ca43f6b3d87fcc4603c218aa442b6af779 (diff) |
Fix EEVEE lamps with shadows by default but wrong UI
Reported on T54788: Actually this was what BI was doing as well.
But anyways fixed for good now.
That includes a subversion bump.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 05ae70b0971..15f43f02150 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -1013,7 +1013,8 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) } } - if (!DNA_struct_find(fd->filesdna, "SpaceTopBar")) { + if (!MAIN_VERSION_ATLEAST(main, 280, 11)) { + /* Remove info editor, but only if at the top of the window. */ for (bScreen *screen = main->screen.first; screen; screen = screen->id.next) { /* Calculate window width/height from screen vertices */ @@ -1045,6 +1046,15 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) } } + if (!MAIN_VERSION_ATLEAST(main, 280, 11)) { + for (Lamp *lamp = main->lamp.first; lamp; lamp = lamp->id.next) { + if (lamp->mode & (1 << 13)) { /* LA_SHAD_RAY */ + lamp->mode |= LA_SHADOW; + lamp->mode &= ~(1 << 13); + } + } + } + #ifdef WITH_REDO_REGION_REMOVAL if (!MAIN_VERSION_ATLEAST(main, 280, TO_BE_DETERMINED)) { /* Remove tool property regions. */ |