]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix OBJ models not getting any lighting
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Nov 2011 18:10:14 +0000 (18:10 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 5 Nov 2011 18:09:20 +0000 (19:09 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11529 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=43a28b12e3b7335010147f200fc18e1906517f34

gl_rmain.c

index e1bc4d28cf9cf6392b475e2578b19ce92df955d7..f3f65f6bfd927aecab99866956c424dc6306223e 100644 (file)
@@ -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);