From 4e0eeeecc130e2bec9e5c53022cc6c61ec1c92b6 Mon Sep 17 00:00:00 2001 From: Dan Birman Date: Wed, 3 Apr 2024 09:27:52 -0700 Subject: [PATCH] feat: adding defaults for CameraModel --- src/vbl_aquarium/models/urchin.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/vbl_aquarium/models/urchin.py b/src/vbl_aquarium/models/urchin.py index f4f5028..0ee2858 100644 --- a/src/vbl_aquarium/models/urchin.py +++ b/src/vbl_aquarium/models/urchin.py @@ -65,16 +65,16 @@ class CameraMode(str, Enum): orthographic = "orthographic" perspective = "perspective" - id: float + id: str type: str - position: Vector3 - rotation: Vector3 - target: Vector3 - zoom: float - pan: Vector2 - mode: CameraMode - controllable: bool - main: bool + position: Vector3 = None + rotation: Vector3 = Vector3(0,0,0) + target: Vector3 = None + zoom: float = 16 + pan: Vector2 = Vector2(0,0) + mode: CameraMode = CameraMode.orthographic + controllable: bool = True + main: bool = False class CameraRotationModel(VBLBaseModel): start_rotation: Vector3