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

Commit 91cd837

Browse files
committed
fix aa shapehint bug when shapeHint doesn't update when rrect -> non-rrect changed
1 parent dec572c commit 91cd837

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
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() {

0 commit comments

Comments
 (0)