diff --git a/Runtime/ui/renderer/common/geometry/path/path.cs b/Runtime/ui/renderer/common/geometry/path/path.cs index 19141c9b..adcac101 100644 --- a/Runtime/ui/renderer/common/geometry/path/path.cs +++ b/Runtime/ui/renderer/common/geometry/path/path.cs @@ -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() { @@ -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() {