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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user