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/editors/object | |
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/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 2 | ||||
-rw-r--r-- | source/blender/editors/object/object_transform.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 4f0961978f9..772199b8d91 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -125,7 +125,6 @@ const EnumPropertyItem rna_enum_light_type_items[] = { {LA_LOCAL, "POINT", ICON_LIGHT_POINT, "Point", "Omnidirectional point light source"}, {LA_SUN, "SUN", ICON_LIGHT_SUN, "Sun", "Constant direction parallel ray light source"}, {LA_SPOT, "SPOT", ICON_LIGHT_SPOT, "Spot", "Directional cone light source"}, - {LA_HEMI, "HEMI", ICON_LIGHT_HEMI, "Hemi", "180 degree constant light source"}, {LA_AREA, "AREA", ICON_LIGHT_AREA, "Area", "Directional area light source"}, {0, NULL, 0, NULL, NULL} }; @@ -1066,7 +1065,6 @@ static const char *get_light_defname(int type) case LA_LOCAL: return CTX_DATA_(BLT_I18NCONTEXT_ID_LAMP, "Point"); case LA_SUN: return CTX_DATA_(BLT_I18NCONTEXT_ID_LAMP, "Sun"); case LA_SPOT: return CTX_DATA_(BLT_I18NCONTEXT_ID_LAMP, "Spot"); - case LA_HEMI: return CTX_DATA_(BLT_I18NCONTEXT_ID_LAMP, "Hemi"); case LA_AREA: return CTX_DATA_(BLT_I18NCONTEXT_ID_LAMP, "Area"); default: return CTX_DATA_(BLT_I18NCONTEXT_ID_LAMP, "Light"); diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 6de96aa30ad..65ac910a237 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -1321,7 +1321,7 @@ static bool object_is_target_compat(const Object *ob) { if (ob->type == OB_LAMP) { const Lamp *la = ob->data; - if (ELEM(la->type, LA_SUN, LA_SPOT, LA_HEMI, LA_AREA)) { + if (ELEM(la->type, LA_SUN, LA_SPOT, LA_AREA)) { return true; } } |