17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 14:24:51 +01:00

fix(editor): apply the transition split when the slider is released

This commit is contained in:
maj00r
2026-10-03 00:53:32 +02:00
parent bf24c3983a
commit 613ee89c69

View File

@@ -1223,10 +1223,9 @@ void editor_mode::render_route_ui()
changed = true; changed = true;
} }
if (ImGui::SliderInt("Paths per transition curve", &design.transition_pieces, 1, 4)) if (ImGui::SliderInt("Paths per transition curve", &design.transition_pieces, 1, 4))
{
route_update(); route_update();
if (ImGui::IsItemDeactivatedAfterEdit())
route_apply(); route_apply();
}
ImGui::PopItemWidth(); ImGui::PopItemWidth();
if (ImGui::TreeNode("Limits")) if (ImGui::TreeNode("Limits"))