Skip to content

Commit ccf96b2

Browse files
committed
Make constructor private
1 parent cf9b523 commit ccf96b2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Runtime/CesiumGlobeFlightPath.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public static CesiumGlobeFlightPath FromLongituteLatitudeHeight(double3 sourceLl
7878
private partial bool CreateFromEarthCenteredEarthFixedCoordinates(double3 sourceEcef, double3 destinationEcef);
7979
private partial bool CreateFromLongitudeLatitudeHeight(double3 sourceLlh, double3 destinationLlh);
8080
private partial double GetLength();
81+
82+
private CesiumGlobeFlightPath()
83+
{
84+
CreateImplementation();
85+
}
8186
#endregion
8287
}
8388
}

Runtime/ConfigureReinterop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ Cesium3DTilesetLoadFailureDetails tilesetDetails
486486
CesiumGlobeAnchor globeAnchor = globeAnchors[globeAnchors.Length - 1];
487487
globeAnchor.positionGlobeFixed = globeAnchor.positionGlobeFixed;
488488

489-
CesiumGlobeFlightPath globeFlightPath = new CesiumGlobeFlightPath();
489+
CesiumGlobeFlightPath globeFlightPath = CesiumGlobeFlightPath.FromEarthCenteredEarthFixedCoordinates(new double3(0, 0, 0), new double3(0, 0, 0));
490490

491491
globeAnchor = go.AddComponent<CesiumGlobeAnchor>();
492492
globeAnchor.detectTransformChanges = globeAnchor.detectTransformChanges;

0 commit comments

Comments
 (0)