diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-18 12:32:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-18 12:42:31 +0300 |
commit | 07c67148e36d95ac185c553ceacbdb6896ae46ca (patch) | |
tree | b97cb7907aae1f5d9061b38fe867bb54a689ad79 /source/blender/collada/EffectExporter.cpp | |
parent | d95ccc21758983e3ec2800285fb7fd2aed807189 (diff) |
Mesh: remove Double Sided lighting option, it does nothing in the new viewport
This is legacy option from fixed-function graphics hardware, where per-vertex
lighting meant this had a significant performance impact.
Diffstat (limited to 'source/blender/collada/EffectExporter.cpp')
-rw-r--r-- | source/blender/collada/EffectExporter.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/collada/EffectExporter.cpp b/source/blender/collada/EffectExporter.cpp index 279113f46d9..a6e75ba41a9 100644 --- a/source/blender/collada/EffectExporter.cpp +++ b/source/blender/collada/EffectExporter.cpp @@ -243,20 +243,9 @@ void EffectsExporter::operator()(Material *ma, Object *ob) // performs the actual writing ep.addProfileElements(); - bool twoSided = false; - if (ob->type == OB_MESH && ob->data) { - Mesh *me = (Mesh *)ob->data; - if (me->flag & ME_TWOSIDED) - twoSided = true; - } - if (twoSided) - ep.addExtraTechniqueParameter("GOOGLEEARTH", "double_sided", 1); ep.addExtraTechniques(mSW); ep.closeProfile(); - if (twoSided) - mSW->appendTextBlock( - "<extra><technique profile=\"MAX3D\"><double_sided>1</double_sided></technique></extra>"); closeEffect(); } |