From a546b3a62e86d033382e0b6e9d37908ae5693dc0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 26 Aug 2019 13:50:28 +0200 Subject: [PATCH] fixed shift_view_towards in nonisotropic --- hypgraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index a93dd9c4..a9e427d7 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -2107,7 +2107,8 @@ EX void shift_view_towards(hyperpoint H, ld l) { shift_view(tangent_length(H-C0, -l)); else { hyperpoint ie = inverse_exp(H, iTable, true); - shift_view(tangent_length(lp_apply(ie), -l)); + if(prod) ie = lp_apply(ie); + shift_view(tangent_length(ie, -l)); } }