Fix provided by Mal:

- 3D Window, textured drawmode shows lighted again for non-textured faces
- Engine: faces show lighted again when 3d windows was Solid draw mode

Example:
http://www.candointeractive.com/blender/BlenderViewport.jpg
This commit is contained in:
Ton Roosendaal
2007-05-20 15:55:49 +00:00
parent 8fac5a9aa1
commit fbbc038cb6
2 changed files with 2 additions and 2 deletions

View File

@@ -181,7 +181,7 @@ bool RAS_MaterialBucket::ActivateMaterial(const MT_Transform& cameratrans, RAS_I
else
dolights = (m_material->GetDrawingMode()&16)!=0;
if ((rasty->GetDrawingMode() <= RAS_IRasterizer::KX_SOLID) || !dolights)
if ((rasty->GetDrawingMode() < RAS_IRasterizer::KX_SOLID) || !dolights)
{
rendertools->ProcessLighting(-1);
}