Skip to content

Commit

Permalink
Merge pull request #141 from CesiumGS/globe-anchor-reparent
Browse files Browse the repository at this point in the history
Call GlobeAnchor.Sync when the parent transform changes.
  • Loading branch information
kring authored Nov 30, 2022
2 parents b203121 + 96aa503 commit d97e244
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Runtime/CesiumGlobeAnchor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ private void OnEnable()
this.StartOrStopDetectingTransformChanges();
}

private void OnTransformParentChanged()
{
this.Sync();
}

#endregion

#region Coroutines
Expand Down

0 comments on commit d97e244

Please sign in to comment.