Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 1dd2b77

Browse files
author
Yuncong Zhang
authored
Merge pull request #382 from UnityTech/fix_aa_shapehintbug
fix error: won't adjust fill area size when canskipAAhairline is true
2 parents f72c10f + 295b29c commit 1dd2b77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/ui/renderer/common/geometry/path/path_cache.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ uiVertexUV _expandStroke(float w, float fringe, StrokeCap lineCap, StrokeJoin li
403403
}
404404

405405
uiVertexUV _expandFill(float fringe) {
406-
float aa = fringe;
406+
float aa = this.canSkipAAHairline ? 0f : fringe;
407407
float woff = aa * 0.5f;
408408
var points = this._points;
409409
var paths = this._paths;
@@ -469,7 +469,7 @@ uiVertexUV _expandFill(float fringe) {
469469

470470
uiList<Vector3> _strokeVertices = null;
471471
uiList<Vector2> _strokeUV = null;
472-
if (aa > 0.0f && !this.canSkipAAHairline) {
472+
if (aa > 0.0f) {
473473
_strokeVertices = ObjectPool<uiList<Vector3>>.alloc();
474474
_strokeUV = ObjectPool<uiList<Vector2>>.alloc();
475475
cvertices = 0;

0 commit comments

Comments
 (0)