From d113eed245e40101c916ef73c5aef00000dadf6c Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 3 Sep 2021 06:19:41 +0300 Subject: [PATCH] improve MergeMetaTriangles out surfaces quality and reduce count --- tools/quake3/q3map2/surface_meta.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/quake3/q3map2/surface_meta.cpp b/tools/quake3/q3map2/surface_meta.cpp index 16bcf0e5..a023121e 100644 --- a/tools/quake3/q3map2/surface_meta.cpp +++ b/tools/quake3/q3map2/surface_meta.cpp @@ -1634,15 +1634,8 @@ static void MetaTrianglesToSurface( metaTriangle_t *begin, metaTriangle_t *end, /* if we have a score over a certain threshold, just use it */ if ( bestScore >= GOOD_SCORE ) { - if ( AddMetaTriangleToSurface( ds, best, texMinMax, sorted_indices, false ) ) { - ( *numAdded )++; - testend = expand_range( best ); - } - - /* reset */ - best = nullptr; - bestScore = 0; - added = true; + /* don't keep "we're on the right track, yay!" run, but restart loop; produces fewer and more quality surfaces */ + break; } } }