Skip to content

Commit

Permalink
2d demo: fixed an issue, which prevented to toggle the gaze visualiza…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
fx-lange committed Mar 21, 2019
1 parent fe5b881 commit d309b70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@ void OnEnable()
print ("We are gazing");
}
}

void OnDisable()
{
if (PupilTools.IsConnected)
{
PupilGazeTracker.Instance.StopVisualizingGaze ();
print ("Stop visualizing gaze");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public void StopVisualizingGaze ()
PupilMarker.TryToSetActive(_markerGazeCenter,false);
PupilMarker.TryToSetActive(_gaze3D,false);

PupilTools.IsIdle = true;
// PupilTools.IsIdle = true;
// PupilTools.UnSubscribeFrom("gaze");
}

Expand Down

0 comments on commit d309b70

Please sign in to comment.