diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 10:08:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 10:08:15 +0200 |
commit | fc1a03f9a257faf78de7838954709593ab4da628 (patch) | |
tree | 6f267b3d423ab5fcb5f71fc55956f1bf6388eac6 | |
parent | db18f363e29dfd9c7f85f6f2dc316e03f17c9936 (diff) |
ffffffff
-rw-r--r-- | editor/imgui.cpp | 4 | ||||
-rw-r--r-- | main/clickable.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 327d09da..6f1e1d29 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -169,8 +169,8 @@ void app::do_popup_menu() const auto i = sc->index(); if (ImGui::MenuItem("Activate", nullptr, false, sc->can_activate(i))) sc->activate(i); - if (bool b_ins = sc && !check_inspector_exists(_popup_target); - ImGui::MenuItem("Inspect", nullptr, false, b_ins)) + if (bool b_ins = !check_inspector_exists(_popup_target); + ImGui::MenuItem("Inspect", nullptr, !b_ins, b_ins)) inspectors.push_back(std::exchange(_popup_target, {})); ImGui::SeparatorText("Modify"); if (auto next_rot = sc->atlas->next_rotation_from(sc->r); diff --git a/main/clickable.hpp b/main/clickable.hpp index 7de946a1..2fc28587 100644 --- a/main/clickable.hpp +++ b/main/clickable.hpp @@ -15,7 +15,7 @@ struct clickable final { BitArrayView bitmask; entity* e; float depth, slope; - Vector2s bb_min, bb_max; + Vector2s bb_min, bb_max; // debug only uint32_t stride; bool mirrored; }; |