From 406182db5dbdfed8dad0f689bb087ca37f53a5b6 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 18 Mar 2015 02:30:54 +0000 Subject: [PATCH] Fixed option to disable drawing lines. --- common/lc_context.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/common/lc_context.cpp b/common/lc_context.cpp index 67bd6776..3a97689b 100644 --- a/common/lc_context.cpp +++ b/common/lc_context.cpp @@ -399,6 +399,8 @@ void lcContext::DrawMeshSection(lcMesh* Mesh, lcMeshSection* Section) void lcContext::DrawOpaqueMeshes(const lcMatrix44& ViewMatrix, const lcArray& OpaqueMeshes) { + bool DrawLines = lcGetPreferences().mDrawEdgeLines; + for (int MeshIdx = 0; MeshIdx < OpaqueMeshes.GetSize(); MeshIdx++) { lcRenderMesh& RenderMesh = OpaqueMeshes[MeshIdx]; @@ -439,10 +441,15 @@ void lcContext::DrawOpaqueMeshes(const lcMatrix44& ViewMatrix, const lcArray