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