去掉了没用的代码
This commit is contained in:
parent
c219da2e5b
commit
b2d9357234
@ -278,7 +278,6 @@ class SR1ShipRender(BaseScreen):
|
||||
mouse_dy_d *= (1 - zoom_d)
|
||||
self.camera_rs.zoom *= zoom_d
|
||||
if self.camera_rs.zoom * zoom_d >= 10:
|
||||
zoom_d = 10 / self.camera_rs.zoom
|
||||
self.camera_rs.zoom = 10
|
||||
self.camera_rs.dx += mouse_dx_d
|
||||
self.camera_rs.dy += mouse_dy_d
|
||||
|
@ -55,9 +55,7 @@ pub mod types {
|
||||
Ok(ok) => {
|
||||
ok.extract()?
|
||||
}
|
||||
_ => {
|
||||
None
|
||||
}
|
||||
_ => None
|
||||
};
|
||||
|
||||
return Ok(SR1PartData{
|
||||
|
@ -206,6 +206,10 @@ pub mod math {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn rotate(&self, angle: f64) -> Self {
|
||||
OneTimeLine::point_new(&self.start.rotate_angle(angle), &self.end.rotate_angle(angle))
|
||||
}
|
||||
|
||||
pub fn point_d() -> f64 {
|
||||
1.0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user