diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 03:37:10 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 03:37:10 +0200 |
commit | 4f9da55305d74a40b4e2197b236b94dd16571dbe (patch) | |
tree | bab56b0441005cf103b2f65f104a33bf2ec6e971 /editor | |
parent | 7124efd5a43017413b2b009c13371b9722c927e6 (diff) |
a
Diffstat (limited to 'editor')
-rw-r--r-- | editor/app.hpp | 2 | ||||
-rw-r--r-- | editor/draw.cpp | 1 | ||||
-rw-r--r-- | editor/imgui.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/editor/app.hpp b/editor/app.hpp index 4223f8c9..c9bfa966 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -45,7 +45,7 @@ enum class popup_target_type : unsigned char { }; struct popup_target final { - std::shared_ptr<entity> e; + entity* e; popup_target_type target = popup_target_type::none; bool operator==(const popup_target&) const; }; diff --git a/editor/draw.cpp b/editor/draw.cpp index ab9cb7ee..6d07f871 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -146,7 +146,6 @@ void app::draw_collision_boxes() void app::draw() { - //draw_character(); if (_render_bboxes) draw_collision_boxes(); if (_editor.current_tile_editor() || _editor.current_scenery_editor()) diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 7fafc8d7..9a83d780 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -178,7 +178,9 @@ void app::kill_popups(bool hard) { const bool imgui = _imgui.context() != nullptr; + _pending_popup = false; _popup_target = {}; + if (imgui) ImGui::CloseCurrentPopup(); |