fix -debugorigin crash in IlluminateVertexes

This commit is contained in:
Garux 2021-12-21 13:20:41 +03:00
parent f739e53eab
commit 19664b6bca

View File

@ -3045,7 +3045,7 @@ void IlluminateVertexes( int num ){
/* color the luxel with luxel origin? */
else if ( debugOrigin ) {
const Vector3 temp = ( info->minmax.maxs - info->minmax.mins ) * ( 1.0f / 255.0f );
const Vector3 temp2 = origin - lm->minmax.mins;
const Vector3 temp2 = verts[ i ].xyz - info->minmax.mins;
radVertLuxel = info->minmax.mins + ( temp * temp2 );
}