mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 14:37:29 +01:00
refactor(editor): one declaration per statement (cpp:S1659) and no chained assignments (cpp:S1121) in the editor files of the branch; single statements under if/else/for that became two got braces
This commit is contained in:
@@ -893,7 +893,8 @@ void editor_mode::start_track_box()
|
||||
{
|
||||
auto const &io{ImGui::GetIO()};
|
||||
m_track_box.active = true;
|
||||
m_track_box.from = m_track_box.to = {io.MousePos.x, io.MousePos.y};
|
||||
m_track_box.to = {io.MousePos.x, io.MousePos.y};
|
||||
m_track_box.from = m_track_box.to;
|
||||
m_track_box.hovered = m_hover.track;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user