enfasten -meta for nonplanar by doing cheap check 1st
This commit is contained in:
parent
160c1d33db
commit
e780b45696
|
|
@ -1336,10 +1336,10 @@ static int AddMetaTriangleToSurface( mapDrawSurface_t *ds, metaTriangle_t *tri,
|
|||
|
||||
/* planar surfaces will only merge with triangles in the same plane */
|
||||
if ( npDegrees == 0.0f && !ds->shaderInfo->nonplanar && ds->planeNum >= 0 ) {
|
||||
if ( !VectorCompare( mapplanes[ ds->planeNum ].normal(), tri->plane.normal() ) || mapplanes[ ds->planeNum ].dist() != tri->plane.dist() ) {
|
||||
if ( tri->planeNum >= 0 && tri->planeNum != ds->planeNum ) {
|
||||
return 0;
|
||||
}
|
||||
if ( tri->planeNum >= 0 && tri->planeNum != ds->planeNum ) {
|
||||
if ( !VectorCompare( mapplanes[ ds->planeNum ].normal(), tri->plane.normal() ) || mapplanes[ ds->planeNum ].dist() != tri->plane.dist() ) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user