Skip to content

Commit

Permalink
Bug fix on path mode dropdown
Browse files Browse the repository at this point in the history
- Added LateUpdate invocation on file path changes. This is needed when the
  path is not actually changed (i.e. clicking the same item on the path mode
  dropdown).
  • Loading branch information
keijiro committed Feb 26, 2019
1 parent 8de9f92 commit edda793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Klak/Hap/Editor/HapPlayerEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ public override void OnInspectorGUI()
{
// This is a little bit scary hack but we can force a HapPlayer
// to reload a given video file by invoking OnDestroy.
foreach (HapPlayer hp in targets) hp.SendMessage("OnDestroy");
foreach (HapPlayer hp in targets)
{
hp.SendMessage("OnDestroy");
hp.SendMessage("LateUpdate");
}

// Also the source information string should be refreshed.
_sourceInfo = null;
Expand Down

0 comments on commit edda793

Please sign in to comment.