mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
c4ef2a59a0
commit
81ed53bdb7
@ -33,6 +33,8 @@ impl Window {
|
||||
tri_mesh: TriMesh,
|
||||
event_loop: &ActiveEventLoop,
|
||||
) -> Result<Self, WindowError> {
|
||||
let aabb = tri_mesh.aabb();
|
||||
|
||||
let window = Arc::new(
|
||||
event_loop.create_window(
|
||||
winit::window::Window::default_attributes()
|
||||
@ -47,7 +49,6 @@ impl Window {
|
||||
.await?;
|
||||
let mut camera = Camera::new();
|
||||
|
||||
let aabb = tri_mesh.aabb();
|
||||
camera.init_planes(&aabb);
|
||||
|
||||
Ok(Self {
|
||||
|
Loading…
Reference in New Issue
Block a user