Skip to content

Commit 66af4fb

Browse files
author
Christopher - Marcel Böddecker
committed
fix(SDKSetup): changes because of auto populate not serializing
Whenever the auto populate action run the changes done were not saved. The fix is to let Unity know about the changes so it will mark the scene as dirty. This fixes #1187.
1 parent d4445f2 commit 66af4fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/VRTK/Scripts/Utilities/SDK/VRTK_SDKSetup.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ public void PopulateObjectReferences(bool force)
278278
#endif
279279
VRTK_SDK_Bridge.InvalidateCaches();
280280

281+
#if UNITY_EDITOR
282+
Undo.RecordObject(this, "Populate Object References");
283+
#endif
284+
281285
actualBoundaries = null;
282286
actualHeadset = null;
283287
actualLeftController = null;

0 commit comments

Comments
 (0)