17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 08:39:19 +02: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;
}
if (ImGui::SliderInt("Paths per transition curve", &design.transition_pieces, 1, 4))
{
route_update();
if (ImGui::IsItemDeactivatedAfterEdit())
route_apply();
}
ImGui::PopItemWidth();
if (ImGui::TreeNode("Limits"))