mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
fixed incorrect zoom when no curves in curve editor
This commit is contained in:
@@ -1146,6 +1146,10 @@ impl CurveEditor {
|
||||
}
|
||||
|
||||
fn zoom_to_fit(&mut self, sender: &Sender<UiMessage>) {
|
||||
if self.curves.curves.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
let mut min = Vector2::repeat(f32::MAX);
|
||||
let mut max = Vector2::repeat(-f32::MAX);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user