🐛[bugfix] config : _OVERLAY_SMALL_LOG_SETTINGSにtrackerを設定できるように修正
This commit is contained in:
@@ -759,6 +759,10 @@ class Config:
|
|||||||
if isinstance(value, dict) and set(value.keys()) == set(self.OVERLAY_SMALL_LOG_SETTINGS.keys()):
|
if isinstance(value, dict) and set(value.keys()) == set(self.OVERLAY_SMALL_LOG_SETTINGS.keys()):
|
||||||
for key, value in value.items():
|
for key, value in value.items():
|
||||||
match (key):
|
match (key):
|
||||||
|
case "tracker":
|
||||||
|
if isinstance(value, str):
|
||||||
|
# "HMD", "LeftHand", "RightHand"
|
||||||
|
self._OVERLAY_SMALL_LOG_SETTINGS[key] = value
|
||||||
case "x_pos" | "y_pos" | "z_pos" | "x_rotation" | "y_rotation" | "z_rotation":
|
case "x_pos" | "y_pos" | "z_pos" | "x_rotation" | "y_rotation" | "z_rotation":
|
||||||
if isinstance(value, (int, float)):
|
if isinstance(value, (int, float)):
|
||||||
self._OVERLAY_SMALL_LOG_SETTINGS[key] = float(value)
|
self._OVERLAY_SMALL_LOG_SETTINGS[key] = float(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user