File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -466,8 +466,6 @@ public void Sync()
466466 this . _lastLocalScale != this . transform . localScale ;
467467 }
468468
469- _lastEllipsoidRadii = _georeference . ellipsoid . radii ;
470-
471469 if ( isEllipsoidChanged || updateFromTransform )
472470 this . UpdateEcefFromTransform ( ) ;
473471 else
Original file line number Diff line number Diff line change @@ -540,6 +540,7 @@ Cesium3DTilesetLoadFailureDetails tilesetDetails
540540 globeAnchor . _lastLocalPosition = new Vector3 ( ) ;
541541 globeAnchor . _lastLocalRotation = new Quaternion ( ) ;
542542 globeAnchor . _lastLocalScale = new Vector3 ( ) ;
543+ globeAnchor . _lastEllipsoidRadii = new double3 ( ) ;
543544 globeAnchor . UpdateGeoreferenceIfNecessary ( ) ;
544545
545546 CesiumTileExcluder [ ] excluders = go . GetComponentsInParent < CesiumTileExcluder > ( ) ;
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ void updateAnchorFromCpp(
116116 anchor._lastLocalRotation (transform.localRotation ());
117117 anchor._lastLocalScale (transform.localScale ());
118118 anchor._lastLocalsAreValid (true );
119+ anchor._lastEllipsoidRadii (georeference.ellipsoid ().radii ());
119120 }
120121}
121122
You can’t perform that action at this time.
0 commit comments