Fix live hinge animation and Drive Joint slider previews (#835)

Joint previews keep showing finished poses while the slider moves, and the latest value is still computed.
This commit is contained in:
bherbruck authored and GitHub committed 2026-10-13 16:34:09 -04:00
1 parent 152418b624
commit b702f0efde
3 files changed
+194 -7

No files matched your search

+1
View File
@@ -529,6 +529,7 @@ pub fn rows(app: &mut SolveApp, ui: &mut egui::Ui, k: &mut Asm, inputs: &mut [Se
row_label(ui, "");
ui.spacing_mut().slider_width = 160.0;
let r = ui.add(egui::Slider::new(&mut shown, lo * scale..=hi * scale).show_value(false));
crate::scenario::publish_handle(&format!("drive_slider:{i}"), r.rect.center());
if r.changed() {
*v = if angle { format!("{shown:.1} deg") } else { format!("{shown:.2} mm") };
}