From f38746a7ebcc22369a5d61afeb062693b655d130 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 15 Apr 2022 02:01:06 -0600 Subject: [PATCH] qbsp: call MergeAll in the right place --- qbsp/qbsp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qbsp/qbsp.cc b/qbsp/qbsp.cc index a02c9994..ac59525d 100644 --- a/qbsp/qbsp.cc +++ b/qbsp/qbsp.cc @@ -702,9 +702,6 @@ static void ProcessEntity(mapentity_t *entity, const int hullnum) // make a really good tree nodes = SolidBSP(entity, false); - // merge polygons - MergeAll(nodes); - // make the real portals for vis tracing PortalizeWorld(entity, nodes, hullnum); } @@ -718,6 +715,9 @@ static void ProcessEntity(mapentity_t *entity, const int hullnum) MakeVisibleFaces(entity, nodes); + // merge polygons + MergeAll(nodes); + // needs to come after any face creation MakeMarkFaces(entity, nodes);