Update camera_widget.py - Fix OSC recenter/ recalibrate (#131)

This commit is contained in:
Blabz 2025-02-07 08:52:23 +13:00 committed by GitHub
parent 4836bc55c5
commit 59f2aa14ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,11 +349,12 @@ class CameraWidget:
self.start()
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
self.settings.gui_recenter_eyes = True
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
if osc_message.data: