diff --git a/hypgraph.cpp b/hypgraph.cpp index 26a14407..d619484e 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -2938,7 +2938,7 @@ EX void shift_view_towards(shiftpoint H, ld l) { } EX void set_view(hyperpoint camera, hyperpoint forward, hyperpoint upward) { - if(WDIM == 2) { + if(GDIM == 2) { View = gpushxto0(camera); View = spin(90*degree) * spintox(View * upward) * View; return;