From 33a236195df42d6b4ed0776463476835e4023204 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 19 Aug 2019 10:52:14 +0200 Subject: [PATCH] product:: applymodel --- hypgraph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hypgraph.cpp b/hypgraph.cpp index 566316bf..4ff0055b 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -319,6 +319,7 @@ EX void applymodel(hyperpoint H, hyperpoint& ret) { switch(pmodel) { case mdPerspective: { ld ratio = vid.xres / current_display->tanfov / current_display->radius / 2; + if(prod) H = product::inverse_exp(H); if(nisot::local_perspective_used()) H = nisot::local_perspective * H; ret[0] = H[0]/H[2] * ratio; ret[1] = H[1]/H[2] * ratio;