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:
authorCampbell Barton <ideasman42@gmail.com>2012-10-14 17:08:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-14 17:08:19 +0400
commit8e01b8959e65c4ec63433b7ef82130847caa8d39 (patch)
treeef32cd3caea073995257c3e178a99b8ae79447d6 /source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp
parent3a947cf537aa8c818ee1b0df8cbadd47f878a497 (diff)
style cleanup
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp')
-rw-r--r--source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp
index 4af1753c2da..ddadd97b567 100644
--- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp
+++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.cpp
@@ -254,12 +254,18 @@ bool RAS_IPolyMaterial::UsesLighting(RAS_IRasterizer *rasty) const
{
bool dolights = false;
- if (m_flag & RAS_BLENDERMAT)
- dolights = (m_flag &RAS_MULTILIGHT)!=0;
- else if (rasty->GetDrawingMode() < RAS_IRasterizer::KX_SOLID);
- else if (rasty->GetDrawingMode() == RAS_IRasterizer::KX_SHADOW);
- else
+ if (m_flag & RAS_BLENDERMAT) {
+ dolights = (m_flag & RAS_MULTILIGHT) != 0;
+ }
+ else if (rasty->GetDrawingMode() < RAS_IRasterizer::KX_SOLID) {
+ /* pass */
+ }
+ else if (rasty->GetDrawingMode() == RAS_IRasterizer::KX_SHADOW) {
+ /* pass */
+ }
+ else {
dolights = m_light;
+ }
return dolights;
}