From: divverent Date: Sat, 5 Nov 2011 18:10:14 +0000 (+0000) Subject: fix OBJ models not getting any lighting X-Git-Tag: xonotic-v0.6.0~163^2~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=43a28b12e3b7335010147f200fc18e1906517f34;p=xonotic%2Fdarkplaces.git fix OBJ models not getting any lighting git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11529 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);