增加PiepieType支持实心饼图和线框柄图 (#349)

This commit is contained in:
monitor1394
2025-10-22 09:06:28 +08:00
parent c83fe89a31
commit c2bafb8aa8
5 changed files with 39 additions and 3 deletions

View File

@@ -1446,7 +1446,7 @@ namespace XUGL
var lastP4 = center;
var lastColor = color;
var needBorder = borderWidth != 0;
var needSpace = gap != 0;
var needSpace = gap != 0 || borderWidth != 0;
var borderLineWidth = needSpace ? borderWidth : borderWidth / 2;
var lastPos = Vector3.zero;
var middleDire = UGLHelper.GetDire(startAngle + halfAngle);