mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-09 19:41:04 +00:00
q3map2: don't store lightmap if the last bounce computation ran empty.
This commit is contained in:
parent
044c0b6156
commit
1498ce667d
1 changed files with 4 additions and 4 deletions
|
@ -1772,7 +1772,7 @@ void LightWorld( void ){
|
||||||
SetupEnvelopes( qfalse, fastbounce );
|
SetupEnvelopes( qfalse, fastbounce );
|
||||||
if ( numLights == 0 ) {
|
if ( numLights == 0 ) {
|
||||||
Sys_Printf( "No diffuse light to calculate, ending radiosity.\n" );
|
Sys_Printf( "No diffuse light to calculate, ending radiosity.\n" );
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add to lightgrid */
|
/* add to lightgrid */
|
||||||
|
@ -1813,6 +1813,9 @@ void LightWorld( void ){
|
||||||
bounce--;
|
bounce--;
|
||||||
b++;
|
b++;
|
||||||
}
|
}
|
||||||
|
/* ydnar: store off lightmaps */
|
||||||
|
StoreSurfaceLightmaps();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2301,9 +2304,6 @@ int LightMain( int argc, char **argv ){
|
||||||
/* light the world */
|
/* light the world */
|
||||||
LightWorld();
|
LightWorld();
|
||||||
|
|
||||||
/* ydnar: store off lightmaps */
|
|
||||||
StoreSurfaceLightmaps();
|
|
||||||
|
|
||||||
/* write out the bsp */
|
/* write out the bsp */
|
||||||
UnparseEntities();
|
UnparseEntities();
|
||||||
Sys_Printf( "Writing %s\n", source );
|
Sys_Printf( "Writing %s\n", source );
|
||||||
|
|
Loading…
Reference in a new issue