From 5d9518b9cfb8584b7f453b116357ae87ae752e71 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 21 Mar 2019 03:01:08 +0100 Subject: [PATCH] fixed orientation_yz in GL --- polygons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polygons.cpp b/polygons.cpp index a561dfea..37737354 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -532,10 +532,10 @@ void glapplymatrix(const transmatrix& V) { if(vid.stretch != 1) mat[1] *= vid.stretch, mat[5] *= vid.stretch, mat[9] *= vid.stretch, mat[13] *= vid.stretch; if(conformal::model_has_orientation()) { + if(DIM == 3) for(int a=0; a<4; a++) + conformal::apply_orientation_yz(mat[a*4+1], mat[a*4+2]); for(int a=0; a<4; a++) conformal::apply_orientation(mat[a*4], mat[a*4+1]); - if(DIM == 3) for(int a=0; a<4; a++) - conformal::apply_orientation_yz(mat[a*4+2], mat[a*4+2]); } glhr::set_modelview(glhr::as_glmatrix(mat));