From 3ece943c9f4528033661db9a765dce3c99b97814 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 18 Sep 2021 01:39:30 +0200 Subject: [PATCH] fixup to intra editing (point_direction was missing) --- graph.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 4002fc52..8128c12b 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4849,17 +4849,20 @@ EX shiftmatrix cview(ld base_shift IS(0)) { return shiftless(actual_view_transform * View, base_shift); } +EX int point_direction; + EX void precise_mouseover() { if(WDIM == 3) { mouseover2 = mouseover = centerover; ld best = HUGE_VAL; shiftpoint h = shiftless(direct_exp(lp_iapply(ztangent(0.01)))); + point_direction = -1; shiftmatrix cov = ggmatrix(mouseover2); forCellIdEx(c1, i, mouseover2) { shiftpoint h1 = tC0(cov * currentmap->adj(mouseover2, i)); ld dist = geo_dist(h, h1) - geo_dist(shiftless(C0), h1); - if(dist < best) mouseover = c1, best = dist; + if(dist < best) mouseover = c1, best = dist, point_direction = i; } return; }