Skip to content

Commit 2303cb6

Browse files
committed
Update CameraViewState
1 parent 3c5494b commit 2303cb6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

modeling-cmds/src/shared.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,25 +1159,19 @@ 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: {x: 0.0, y: 0.0, z: 10.0},
11761173
fov_y: 45.0,
1177-
ortho_scale_factor: 1.6,
11781174
is_ortho: false,
1179-
ortho_scale_enabled: true,
1180-
world_coord_system: Default::default(),
11811175
}
11821176
}
11831177
}

0 commit comments

Comments
 (0)