mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
fix global _ambient not being used on entities w/o _ambient specified
This commit is contained in:
@@ -180,7 +180,7 @@ void WriteSurfaceExtraFile( const char *path ){
|
||||
fprintf( sf, "\tsampleSize %d\n", se->sampleSize );
|
||||
}
|
||||
|
||||
if ( se->ambientColor != seDefault.ambientColor || se == &seDefault ) {
|
||||
if ( ( se->ambientColor != g_vector3_identity && se->ambientColor != seDefault.ambientColor ) || se == &seDefault ) { // 0 == use global
|
||||
fprintf( sf, "\tambientColor ( %f %f %f )\n", se->ambientColor[0], se->ambientColor[1], se->ambientColor[2] );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user