Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-11-14 13:44:05 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-11-14 13:50:37 +0300
commitc3d03b4434c8554bbfff6cdc549bb089dec1da28 (patch)
treed4556b2a7bfa23f1ed7fb79cf9363a1910260711 /intern/cycles/blender
parent0b0b3d7f7e720f2073406247957b800e11e4ef98 (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 'intern/cycles/blender')
-rw-r--r--intern/cycles/blender/addon/ui.py3
-rw-r--r--intern/cycles/blender/blender_object.cpp11
2 files changed, 6 insertions, 8 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 6372a2f5eba..e0bea93e1c2 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -1371,9 +1371,6 @@ class CYCLES_LIGHT_PT_light(CyclesButtonsPanel, Panel):
if light.type == 'AREA':
col.prop(clamp, "is_portal", text="Portal")
- if light.type == 'HEMI':
- layout.label(text="Not supported, interpreted as sun light")
-
class CYCLES_LIGHT_PT_nodes(CyclesButtonsPanel, Panel):
bl_label = "Nodes"
diff --git a/intern/cycles/blender/blender_object.cpp b/intern/cycles/blender/blender_object.cpp
index dcadc735b8e..a57edf9b940 100644
--- a/intern/cycles/blender/blender_object.cpp
+++ b/intern/cycles/blender/blender_object.cpp
@@ -145,11 +145,12 @@ void BlenderSync::sync_light(BL::Object& b_parent,
light->spot_smooth = b_spot_light.spot_blend();
break;
}
- case BL::Light::type_HEMI: {
- light->type = LIGHT_DISTANT;
- light->size = 0.0f;
- break;
- }
+ /* Hemi were removed from 2.8 */
+ // case BL::Light::type_HEMI: {
+ // light->type = LIGHT_DISTANT;
+ // light->size = 0.0f;
+ // break;
+ // }
case BL::Light::type_SUN: {
BL::SunLight b_sun_light(b_light);
light->size = b_sun_light.shadow_soft_size();