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

Fix aa shapehintbug #381

Merged
merged 2 commits 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
8 changes: 4 additions & 4 deletions Runtime/ui/renderer/common/geometry/path/path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ void _updateRRectFlag(bool isNaiveRRect, uiPathShapeHint shapeHint = uiPathShape
return;
}
this._isNaiveRRect = isNaiveRRect && this._hasOnlyMoveTos();
if (this._isNaiveRRect) {
this._shapeHint = shapeHint;
this._rRectCorner = corner;
}
this._shapeHint = shapeHint;
this._rRectCorner = corner;
}

bool _hasOnlyMoveTos() {
Expand Down Expand Up @@ -80,6 +78,8 @@ public override void clear() {
this.needCache = false;
this.pathKey = 0;
this._isNaiveRRect = false;
this._shapeHint = uiPathShapeHint.Other;
this._rRectCorner = 0;
}

void _reset() {
Expand Down