Skip to content

Commit

Permalink
Record prefab anchor modification when Transform is modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Jun 27, 2023
1 parent 2a5ac46 commit 4d621eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

### ? - ?

##### Fixes :wrench:

- Fixed a bug that caused a prefab with a `CesiumGlobeAnchor` to lose its position after save/reload.

### v1.3.1 - 2023-06-06

##### Fixes :wrench:
Expand Down
3 changes: 3 additions & 0 deletions Runtime/CesiumGlobeAnchor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ private void UpdateEcefFromTransform()
this.UpdateGeoreferenceIfNecessary();
if (this._georeference != null)
this.SetNewLocalToGlobeFixedMatrixFromTransform();
#if UNITY_EDITOR
PrefabUtility.RecordPrefabInstancePropertyModifications(this);
#endif
}

/// <summary>
Expand Down

0 comments on commit 4d621eb

Please sign in to comment.