diff options
Diffstat (limited to 'editor')
-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); } } |