diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 07:01:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 07:01:18 +0200 |
commit | 7bd292ca511748b57a7ba8a3bae5da38820cdd6b (patch) | |
tree | 19abb63cbb3503fe91906a0b817ac6a0d61e5d62 | |
parent | 86c6ba861f9ace14faec9c50d7a00ec6c79de719 (diff) |
a
-rw-r--r-- | editor/imgui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index d4bb38e9..327d09da 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -124,8 +124,7 @@ void app::draw_clickables() color, 0, ImDrawFlags_None, thickness); if (x.slope != 0.f) { - const auto bb_min = Vector2(min[0] + x.bb_min[0], min[1] + x.bb_min[1]); - const auto bb_max = Vector2(min[0] + x.bb_max[0], min[1] + x.bb_max[1]); + const auto bb_min = min + Vector2(x.bb_min), bb_max = min + Vector2(x.bb_max); draw.AddLine({ bb_min[0], bb_min[1] }, { bb_max[0], bb_max[1] }, color, thickness); } } |