Patch to BezierLineRendererEditor for Null
parent
c6f095efeb
commit
652dd1a646
|
@ -12,7 +12,7 @@ namespace UnityEngine.UI.Extensions
|
|||
{
|
||||
UILineRenderer curveRenderer = target as UILineRenderer;
|
||||
|
||||
if (!curveRenderer && curveRenderer.Points.Length < 2)
|
||||
if (!curveRenderer || curveRenderer.Points == null || curveRenderer.Points.Length < 2)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue