mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add Copy trait to dependents
This commit is contained in:
parent
0ace0acdcd
commit
70ff8c3faa
@ -24,7 +24,7 @@ impl Default for CameraMode {
|
||||
fn default() -> Self { Self::ThirdPerson }
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct Dependents {
|
||||
pub view_mat: Mat4<f32>,
|
||||
pub proj_mat: Mat4<f32>,
|
||||
@ -116,7 +116,7 @@ impl Camera {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn dependents(&self) -> Dependents { self.dependents.clone() }
|
||||
pub fn dependents(&self) -> Dependents { &self.dependents }
|
||||
|
||||
/// Rotate the camera about its focus by the given delta, limiting the input
|
||||
/// accordingly.
|
||||
|
Loading…
Reference in New Issue
Block a user