Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 8b0bb0c

Browse files
committed
Update diagnostics.cs
1 parent be4d6f6 commit 8b0bb0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.uiwidgets/Runtime/foundation/diagnostics.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,8 @@ public static bool _isSingleLine(DiagnosticsTreeStyle? style) {
627627
return style == DiagnosticsTreeStyle.singleLine;
628628
}
629629

630-
public static bool FloatEqual(float left, float right) {
631-
return Mathf.Abs(left - right) < precisionErrorTolerance;
630+
public static bool FloatEqual(float left, float right, float precisionTolerance = precisionErrorTolerance) {
631+
return Mathf.Abs(left - right) < precisionTolerance;
632632
}
633633
}
634634

0 commit comments

Comments
 (0)