Skip to content

Commit

Permalink
Fix test failure by yielding null instead of WaitForEndOfFrame.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Feb 20, 2024
1 parent c6b7b14 commit 7498e46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/TestCesiumOriginShift.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public IEnumerator ShiftsOriginWithCharacterController()
controller.center = Vector3.zero;
controller.enableOverlapRecovery = false;

yield return new WaitForEndOfFrame();
yield return null;

IEqualityComparer<double> epsilon6 = Comparers.Double(1e-6, 1e-4);

Expand All @@ -189,6 +189,7 @@ public IEnumerator ShiftsOriginWithCharacterController()
previousPositionEcef = globeAnchor.positionGlobeFixed.x;
movement = georeference.TransformEarthCenteredEarthFixedDirectionToUnity(new double3(3000.0, 0, 0));
controller.Move((float3)movement);

globeAnchor.Sync();

yield return null;
Expand Down

0 comments on commit 7498e46

Please sign in to comment.