fixed incorrect zoom when no curves in curve editor

This commit is contained in:
Dmitry Stepanov
2026-08-27 22:32:59 +03:00
parent f4799d3aea
commit bbdddbe05d
+4
View File
@@ -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);