Update UILineRenderer.cs

There is no need to draw either points or segments. Both should be drawn.
release
adibacco 2023-06-28 23:00:16 +02:00 committed by GitHub
parent d2b10980e3
commit 34e3f82395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ namespace UnityEngine.UI.Extensions
PopulateMesh (vh, m_points); PopulateMesh (vh, m_points);
} }
else if (m_segments != null && m_segments.Count > 0) { if (m_segments != null && m_segments.Count > 0) {
GeneratedUVs (); GeneratedUVs ();
vh.Clear (); vh.Clear ();
@ -480,4 +480,4 @@ namespace UnityEngine.UI.Extensions
} }
} }
} }
} }