diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-14 13:44:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-14 13:50:37 +0300 |
commit | c3d03b4434c8554bbfff6cdc549bb089dec1da28 (patch) | |
tree | d4556b2a7bfa23f1ed7fb79cf9363a1910260711 /source/blender/blenloader | |
parent | 0b0b3d7f7e720f2073406247957b800e11e4ef98 (diff) |
Lamps: Remove HEMI light type
This type is not supported by either Eevee or Cycles. If other types of
lamps are needed by external engines, we should support adding custom types.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index a72304a6d92..2049856cfa6 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2258,6 +2258,13 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } + for (Lamp *la = bmain->lamp.first; la; la = la->id.next) { + /* Removed Hemi lights. */ + if (!ELEM(la->type, LA_LOCAL, LA_SUN, LA_SPOT, LA_AREA)) { + la->type = LA_SUN; + } + } + if (!DNA_struct_elem_find(fd->filesdna, "Brush", "char", "weightpaint_tool")) { /* Magic defines from old files (2.7x) */ |