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 /editor | |
| parent | db18f363e29dfd9c7f85f6f2dc316e03f17c9936 (diff) | |
ffffffff
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/imgui.cpp | 4 |
1 files changed, 2 insertions, 2 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); |
