From 85e0198b65a5c2e6f129a44d39e4dd3ed264944c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 27 Dec 2021 02:09:36 +0100 Subject: [PATCH] - fix triangulation issue with certain doors in Blood. --- libraries/libtess/Source/sweep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libtess/Source/sweep.c b/libraries/libtess/Source/sweep.c index 32a56bf40..5fc1d97b7 100644 --- a/libraries/libtess/Source/sweep.c +++ b/libraries/libtess/Source/sweep.c @@ -493,7 +493,7 @@ static int CheckForRightSplice( TESStesselator *tess, ActiveRegion *regUp ) SpliceMergeVertices( tess, eLo->Oprev, eUp ); } } else { - if( EdgeSign( eUp->Dst, eLo->Org, eUp->Org ) <= 0 ) return FALSE; + if( EdgeSign( eUp->Dst, eLo->Org, eUp->Org ) < 0 ) return FALSE; /* eLo->Org appears to be above eUp, so splice eLo->Org into eUp */ RegionAbove(regUp)->dirty = regUp->dirty = TRUE;