From 34e3f82395894b5f7d47ab1fbd99ed496fb89c89 Mon Sep 17 00:00:00 2001 From: adibacco Date: Wed, 28 Jun 2023 23:00:16 +0200 Subject: [PATCH] Update UILineRenderer.cs There is no need to draw either points or segments. Both should be drawn. --- Runtime/Scripts/Primitives/UILineRenderer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Scripts/Primitives/UILineRenderer.cs b/Runtime/Scripts/Primitives/UILineRenderer.cs index d3b5d3d..3e50eb8 100644 --- a/Runtime/Scripts/Primitives/UILineRenderer.cs +++ b/Runtime/Scripts/Primitives/UILineRenderer.cs @@ -287,7 +287,7 @@ namespace UnityEngine.UI.Extensions PopulateMesh (vh, m_points); } - else if (m_segments != null && m_segments.Count > 0) { + if (m_segments != null && m_segments.Count > 0) { GeneratedUVs (); vh.Clear (); @@ -480,4 +480,4 @@ namespace UnityEngine.UI.Extensions } } } -} \ No newline at end of file +}