mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
Update camera_widget.py - Fix OSC recenter/ recalibrate (#131)
This commit is contained in:
parent
4836bc55c5
commit
59f2aa14ec
@ -349,11 +349,12 @@ class CameraWidget:
|
|||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
def recenter_eyes(self, osc_message: OSCMessage):
|
def recenter_eyes(self, osc_message: OSCMessage):
|
||||||
if osc_message.data is not bool:
|
if not isinstance(osc_message.data,bool):
|
||||||
return # just incase we get anything other than bool
|
return # just incase we get anything other than bool
|
||||||
|
self.settings.gui_recenter_eyes = True
|
||||||
|
|
||||||
def recalibrate_eyes(self, osc_message: OSCMessage):
|
def recalibrate_eyes(self, osc_message: OSCMessage):
|
||||||
if osc_message.data is not bool:
|
if not isinstance(osc_message.data,bool):
|
||||||
return # just incase we get anything other than bool
|
return # just incase we get anything other than bool
|
||||||
|
|
||||||
if osc_message.data:
|
if osc_message.data:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user