File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ TreeNode::~TreeNode() {
26
26
}
27
27
28
28
bool TreeNode::leaf (char const * label, int flags) {
29
- if ( TreeNode{label, flags | ImGuiTreeNodeFlags_Leaf}) { return true ; }
30
- return false ;
29
+ auto tn = TreeNode{label, flags | ImGuiTreeNodeFlags_Leaf};
30
+ return ImGui::IsItemClicked () ;
31
31
}
32
32
33
33
Window::Menu::Menu (NotClosed<Canvas>) : MenuBar(ImGui::BeginMenuBar()) {}
Original file line number Diff line number Diff line change @@ -52,5 +52,4 @@ target_sources(${PROJECT_NAME} PRIVATE
52
52
src/gltf_loader.cpp
53
53
src/material.cpp
54
54
src/scene.cpp
55
- src/transform.cpp
56
55
)
Original file line number Diff line number Diff line change @@ -99,4 +99,5 @@ target_sources(${PROJECT_NAME} PRIVATE
99
99
src/rgb.cpp
100
100
src/thread_pool.cpp
101
101
src/time.cpp
102
+ src/transform.cpp
102
103
)
File renamed without changes.
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ void WindowMenu::display_menu(editor::NotClosed<editor::MainMenu> main) {
20
20
if (ImGui::MenuItem (" Frame Stats" )) { m_flags.stats = true ; }
21
21
if (ImGui::MenuItem (" Log" )) { m_flags.log = true ; }
22
22
if (ImGui::MenuItem (" Resources" )) { m_flags.resources = true ; }
23
- if (ImGui::MenuItem (" Close All" )) { m_flags = {}; }
23
+ if (ImGui::MenuItem (" Close All" )) {
24
+ m_flags = {};
25
+ m_data.inspect = {};
26
+ }
24
27
ImGui::Separator ();
25
28
if (ImGui::MenuItem (" Dear ImGui Demo" )) { m_flags.demo = true ; }
26
29
}
You can’t perform that action at this time.
0 commit comments