Skip to content

Commit

Permalink
fix(SDK): ensure object references are populated on enable
Browse files Browse the repository at this point in the history
There was an issue where the SDK Setup object references were not
being auto populated on scene change which was causing certain
scripts to not be parented correctly.

This fix ensures the references are populated when the SDK Setup
script is enabled.
  • Loading branch information
thestonefox committed Jun 22, 2017
1 parent 32a589c commit 46c3939
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/VRTK/Scripts/Utilities/SDK/VRTK_SDKSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,11 @@ public void OnUnloaded(VRTK_SDKManager sender)
}
}

private void OnEnable()
{
PopulateObjectReferences(false);
}

#if UNITY_EDITOR
static VRTK_SDKSetup()
{
Expand Down

0 comments on commit 46c3939

Please sign in to comment.