From a64951a6c90e87d947d1cb44fa052c875d7643e6 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 ::stable-branch::merge=43a28b12e3b7335010147f200fc18e1906517f34 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index e1bc4d28..f3f65f6b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4785,7 +4785,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