From 43a28b12e3b7335010147f200fc18e1906517f34 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 5 Nov 2011 18:10:14 +0000 Subject: [PATCH] fix OBJ models not getting any lighting git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11529 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 98b5621c..cdcadf37 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4741,7 +4741,7 @@ static void R_View_UpdateEntityLighting (void) continue; // skip bsp models - if (ent->model && ent->model->brush.num_leafs) + if (ent->model && (ent->model == cl.worldmodel || ent->model->brush.parentmodel == cl.worldmodel)) { // TODO: use modellight for r_ambient settings on world? VectorSet(ent->modellight_ambient, 0, 0, 0); -- 2.39.2