Skip to content

Commit b746fd2

Browse files
committed
Update CameraViewState
1 parent 3c5494b commit b746fd2

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

modeling-cmds/src/shared.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,25 +1159,23 @@ pub enum WorldCoordinateSystem {
11591159
pub struct CameraViewState {
11601160
pub pivot_rotation: Quaternion,
11611161
pub pivot_position: Point3d,
1162-
pub eye_offset: f32,
1162+
pub eye_offset: Point3d,
11631163
pub fov_y: f32,
1164-
pub ortho_scale_factor: f32,
11651164
pub is_ortho: bool,
1166-
pub ortho_scale_enabled: bool,
1167-
pub world_coord_system: WorldCoordinateSystem,
11681165
}
11691166

11701167
impl Default for CameraViewState {
11711168
fn default() -> Self {
11721169
CameraViewState {
11731170
pivot_rotation: Default::default(),
11741171
pivot_position: Default::default(),
1175-
eye_offset: 10.0,
1172+
eye_offset: Point3d {
1173+
x: 0.0,
1174+
y: 0.0,
1175+
z: 10.0,
1176+
},
11761177
fov_y: 45.0,
1177-
ortho_scale_factor: 1.6,
11781178
is_ortho: false,
1179-
ortho_scale_enabled: true,
1180-
world_coord_system: Default::default(),
11811179
}
11821180
}
11831181
}

0 commit comments

Comments
 (0)