Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
fix eye tracking disable option not workin
Browse files Browse the repository at this point in the history
Former-commit-id: dc0b37a
  • Loading branch information
you-win committed Feb 17, 2022
1 parent 4f1b5a9 commit 04ff33d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions screens/ModelDisplayScreen.gd
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ func _physics_process(_delta: float) -> void:
updated,
stored_offsets.translation_offset - open_see_data.translation,
stored_offsets.euler_offset - corrected_euler,
(stored_offsets.left_eye_gaze_offset - open_see_data.left_gaze.get_euler()) *
float(should_track_eye),
(stored_offsets.right_eye_gaze_offset - open_see_data.right_gaze.get_euler()) *
float(should_track_eye),
stored_offsets.left_eye_gaze_offset - open_see_data.left_gaze.get_euler() if should_track_eye else Vector3.ZERO,
stored_offsets.right_eye_gaze_offset - open_see_data.right_gaze.get_euler() if should_track_eye else Vector3.ZERO,
open_see_data.left_eye_open,
open_see_data.right_eye_open,
open_see_data.features.mouth_open,
Expand Down Expand Up @@ -204,6 +202,9 @@ func _on_apply_translation(value: bool) -> void:
func _on_apply_rotation(value: bool) -> void:
apply_rotation = value

func _on_should_track_eye(value: bool) -> void:
should_track_eye = value

###############################################################################
# Private functions #
###############################################################################
Expand Down

0 comments on commit 04ff33d

Please sign in to comment.