summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-02 10:08:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-02 10:08:15 +0200
commitfc1a03f9a257faf78de7838954709593ab4da628 (patch)
tree6f267b3d423ab5fcb5f71fc55956f1bf6388eac6
parentdb18f363e29dfd9c7f85f6f2dc316e03f17c9936 (diff)
ffffffff
-rw-r--r--editor/imgui.cpp4
-rw-r--r--main/clickable.hpp2
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;
};