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

fix error: won't adjust fill area size when canskipAAhairline is true #382

Merged
merged 1 commit into from
Nov 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Runtime/ui/renderer/common/geometry/path/path_cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ uiVertexUV _expandStroke(float w, float fringe, StrokeCap lineCap, StrokeJoin li
}

uiVertexUV _expandFill(float fringe) {
float aa = fringe;
float aa = this.canSkipAAHairline ? 0f : fringe;
float woff = aa * 0.5f;
var points = this._points;
var paths = this._paths;
Expand Down Expand Up @@ -469,7 +469,7 @@ uiVertexUV _expandFill(float fringe) {

uiList<Vector3> _strokeVertices = null;
uiList<Vector2> _strokeUV = null;
if (aa > 0.0f && !this.canSkipAAHairline) {
if (aa > 0.0f) {
_strokeVertices = ObjectPool<uiList<Vector3>>.alloc();
_strokeUV = ObjectPool<uiList<Vector2>>.alloc();
cvertices = 0;
Expand Down