fixed clipping: do not do it in 2D!

This commit is contained in:
Zeno Rogue 2019-07-31 17:33:11 +02:00
parent dc54135d5f
commit 2f0448dbc3
1 changed files with 1 additions and 1 deletions

View File

@ -5047,7 +5047,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
}
if(just_gmatrix) return;
#if MAXMDIM >= 4
if(pmodel == mdPerspective) {
if(WDIM == 3 && pmodel == mdPerspective) {
using namespace hyperpoint_vec;
hyperpoint H = tC0(V);
for(hyperpoint& cpoint: clipping_planes) if((H|cpoint) < -sin_auto(cgi.corner_bonus)) {