From ef5988a851858d35e659949a8358d5a3171e5381 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 15 Apr 2022 13:12:19 +0800 Subject: [PATCH] [enhancement][liquid] support round rect vessel --- Runtime/XUGL/UGL.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/XUGL/UGL.cs b/Runtime/XUGL/UGL.cs index 8662d3ca..44ebe653 100644 --- a/Runtime/XUGL/UGL.cs +++ b/Runtime/XUGL/UGL.cs @@ -624,10 +624,10 @@ namespace XUGL vh.AddUIVertexQuad(s_Vertex); } - private static void InitCornerRadius(float[] cornerRadius, float width, float height, bool horizontal, + public static void InitCornerRadius(float[] cornerRadius, float width, float height, bool horizontal, bool invert, ref float brLt, ref float brRt, ref float brRb, ref float brLb, ref bool needRound) { - if (cornerRadius == null) return; + if (cornerRadius == null || cornerRadius.Length == 0) return; if (invert) { if (horizontal)