From 7ba271ccfd29e4f39a49da54a6d34b7a05a240a3 Mon Sep 17 00:00:00 2001 From: wootguy Date: Tue, 23 Apr 2024 10:31:53 -0700 Subject: [PATCH] fix ents without faces being unselectable --- src/editor/BspRenderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/BspRenderer.cpp b/src/editor/BspRenderer.cpp index a22e103f..1dcf66bb 100644 --- a/src/editor/BspRenderer.cpp +++ b/src/editor/BspRenderer.cpp @@ -1803,8 +1803,6 @@ bool BspRenderer::pickModelPoly(vec3 start, vec3 dir, vec3 offset, int modelIdx, hullIdx = getBestClipnodeHull(modelIdx); } - // Nav mesh WIP code - /* if (clipnodesLoaded && (selectWorldClips || selectEntClips) && hullIdx != -1) { for (int i = 0; i < renderClipnodes[modelIdx].faceMaths[hullIdx].size(); i++) { FaceMath& faceMath = renderClipnodes[modelIdx].faceMaths[hullIdx][i]; @@ -1816,6 +1814,8 @@ bool BspRenderer::pickModelPoly(vec3 start, vec3 dir, vec3 offset, int modelIdx, pickInfo.bestDist = t; pickInfo.faceIdx = -1; + // Nav mesh WIP code + /* if (modelIdx == 0 && hullIdx == 3) { static int lastPick = 0; @@ -1831,10 +1831,10 @@ bool BspRenderer::pickModelPoly(vec3 start, vec3 dir, vec3 offset, int modelIdx, lastPick = i; logf("Picked hull %d, face %d, verts %d, area %.1f\nNav links %d\n", hullIdx, i, debugFaces[i].verts.size(), debugFaces[i].area, node.numLinks()); } + */ } } } - */ return foundBetterPick; }