src/editmodes/circleMode.cpp

changeset 1261
5d2c9d36da9d
parent 1180
2005e4147ad6
child 1263
0256edecda54
--- a/src/editmodes/circleMode.cpp	Sat Mar 03 16:59:03 2018 +0200
+++ b/src/editmodes/circleMode.cpp	Sat Mar 03 17:25:12 2018 +0200
@@ -139,12 +139,12 @@
 			v3.setCoordinate (localx, v3[localx] + c1[i].x1());
 			v3.setCoordinate (localy, v3[localy] + c1[i].y1());
 
+			// Ensure the quads always are BFC-front towards the camera
+			if (static_cast<int>(renderer()->camera()) % 3 <= 0)
+				qSwap(v1, v3);
+
 			LDQuadrilateral* quad = model.emplace<LDQuadrilateral>(v0, v1, v2, v3);
 			quad->setColor(MainColor);
-
-			// Ensure the quads always are BFC-front towards the camera
-			if (static_cast<int>(renderer()->camera()) % 3 <= 0)
-				quad->invert();
 		}
 	}
 

mercurial