fix: eye falloff dom eye bugged

This commit is contained in:
Prohurtz 2024-03-28 07:23:37 -05:00
parent 7c9ed1dc5c
commit 25591b6104
2 changed files with 34 additions and 28 deletions

View File

@ -317,7 +317,7 @@ class cal:
out_x = -abs(max(0.0, min(1.0, xl)))
if self.settings.gui_outer_side_falloff:
print("pn")
run_time = time.time()
out_x_mult = out_x * 100
out_y_mult = out_y * 100

View File

@ -10,7 +10,12 @@ class EyeId(IntEnum):
def velocity_falloff(self, var, out_x, out_y):
print("call")
if (
self.settings.gui_right_eye_dominant
or self.settings.gui_left_eye_dominant
or self.settings.gui_outer_side_falloff
):
# Calculate the distance between the two eyes
dist = np.sqrt(np.square(var.l_eye_x - var.r_eye_x) + np.square(var.left_y - var.right_y))
if self.eye_id == EyeId.LEFT:
@ -41,5 +46,6 @@ def velocity_falloff(self, var, out_x, out_y):
else:
# If the distance is within the threshold, do not mirror the eyes
pass
else:
pass
return out_x, out_y