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 /source/blender/collada
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 'source/blender/collada')
-rw-r--r--source/blender/collada/DocumentImporter.cpp3
-rw-r--r--source/blender/collada/LightExporter.cpp15
2 files changed, 10 insertions, 8 deletions
diff --git a/source/blender/collada/DocumentImporter.cpp b/source/blender/collada/DocumentImporter.cpp
index 50a9e351bc6..f10252c01c5 100644
--- a/source/blender/collada/DocumentImporter.cpp
+++ b/source/blender/collada/DocumentImporter.cpp
@@ -1200,7 +1200,8 @@ bool DocumentImporter::writeLight(const COLLADAFW::Light *light)
switch (type) {
case COLLADAFW::Light::AMBIENT_LIGHT:
{
- lamp->type = LA_HEMI;
+ /* TODO Fix */
+ // lamp->type = LA_HEMI;
}
break;
case COLLADAFW::Light::SPOT_LIGHT:
diff --git a/source/blender/collada/LightExporter.cpp b/source/blender/collada/LightExporter.cpp
index 11377e06ce8..53fcbd1bb1a 100644
--- a/source/blender/collada/LightExporter.cpp
+++ b/source/blender/collada/LightExporter.cpp
@@ -90,13 +90,14 @@ void LightsExporter::operator()(Object *ob)
addLight(cla);
}
// hemi
- else if (la->type == LA_HEMI) {
- COLLADASW::AmbientLight cla(mSW, la_id, la_name);
- cla.setColor(col, false, "color");
- cla.setConstantAttenuation(constatt);
- exportBlenderProfile(cla, la);
- addLight(cla);
- }
+ /* Hemi were removed from 2.8 */
+ // else if (la->type == LA_HEMI) {
+ // COLLADASW::AmbientLight cla(mSW, la_id, la_name);
+ // cla.setColor(col, false, "color");
+ // cla.setConstantAttenuation(constatt);
+ // exportBlenderProfile(cla, la);
+ // addLight(cla);
+ // }
// spot
else if (la->type == LA_SPOT) {
COLLADASW::SpotLight cla(mSW, la_id, la_name);