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

Commit f72c10f

Browse files
author
Yuncong Zhang
authored
Merge pull request #381 from UnityTech/fix_aa_shapehintbug
Fix aa shapehintbug
2 parents 867331b + 4806573 commit f72c10f

File tree

1 file changed

+4
-4
lines changed
  • Runtime/ui/renderer/common/geometry/path

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ void _updateRRectFlag(bool isNaiveRRect, uiPathShapeHint shapeHint = uiPathShape
3030
return;
3131
}
3232
this._isNaiveRRect = isNaiveRRect && this._hasOnlyMoveTos();
33-
if (this._isNaiveRRect) {
34-
this._shapeHint = shapeHint;
35-
this._rRectCorner = corner;
36-
}
33+
this._shapeHint = shapeHint;
34+
this._rRectCorner = corner;
3735
}
3836

3937
bool _hasOnlyMoveTos() {
@@ -80,6 +78,8 @@ public override void clear() {
8078
this.needCache = false;
8179
this.pathKey = 0;
8280
this._isNaiveRRect = false;
81+
this._shapeHint = uiPathShapeHint.Other;
82+
this._rRectCorner = 0;
8383
}
8484

8585
void _reset() {

0 commit comments

Comments
 (0)