From accd73fe024b7f53a25178a94075bdd8732fb888 Mon Sep 17 00:00:00 2001
From: EvilSpirit <anandamide@mail.ru>
Date: Fri, 25 Mar 2016 14:13:01 +0600
Subject: [PATCH] Improve rendering of workplane stipple lines.

After this commit, a workplane perpendicular to the camera is
rendered with all dashes aligned, making it look more tidy.
---
 src/drawentity.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drawentity.cpp b/src/drawentity.cpp
index 5d70a46..1877e71 100644
--- a/src/drawentity.cpp
+++ b/src/drawentity.cpp
@@ -667,8 +667,8 @@ void Entity::DrawOrGetDistance(void) {
             }
             LineDrawOrGetDistance(pp, pm);
             LineDrawOrGetDistance(pm, mm2);
-            LineDrawOrGetDistance(mm, mp);
-            LineDrawOrGetDistance(mp, pp);
+            LineDrawOrGetDistance(mp, mm);
+            LineDrawOrGetDistance(pp, mp);
 
             if(dogd.drawing)
                 glDisable(GL_LINE_STIPPLE);