From f815130206930bd23d8a27f93201906dcb5511d4 Mon Sep 17 00:00:00 2001 From: Artyom Shalkhakov Date: Mon, 10 Feb 2025 23:30:20 -0700 Subject: [PATCH] Draw multiple windows. Fix decl existence check. --- neo/tools/imgui/ImGuiTools.cpp | 10 +++++----- neo/tools/imgui/decleditor/PathTreeCtrl.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/neo/tools/imgui/ImGuiTools.cpp b/neo/tools/imgui/ImGuiTools.cpp index bcb56c90..99a77ff6 100644 --- a/neo/tools/imgui/ImGuiTools.cpp +++ b/neo/tools/imgui/ImGuiTools.cpp @@ -133,23 +133,23 @@ void DrawToolWindows() { LightEditor::Instance().Draw(); } - else if( AfEditor::Instance().IsShown() ) + if( AfEditor::Instance().IsShown() ) { AfEditor::Instance().Draw(); } - else if ( PDAEditor::Instance().IsShown() ) + if ( PDAEditor::Instance().IsShown() ) { PDAEditor::Instance().Draw(); } - else if ( ParticleEditor::Instance().IsShown() ) + if ( ParticleEditor::Instance().IsShown() ) { ParticleEditor::Instance().Draw(); } - else if ( ScriptEditor::Instance().IsShown() ) + if ( ScriptEditor::Instance().IsShown() ) { ScriptEditor::Instance().Draw(); } - else if ( DeclBrowser::Instance().IsShown() ) { + if ( DeclBrowser::Instance().IsShown() ) { DeclBrowser::Instance().Draw(); } } diff --git a/neo/tools/imgui/decleditor/PathTreeCtrl.cpp b/neo/tools/imgui/decleditor/PathTreeCtrl.cpp index 438f2430..04c95c86 100644 --- a/neo/tools/imgui/decleditor/PathTreeCtrl.cpp +++ b/neo/tools/imgui/decleditor/PathTreeCtrl.cpp @@ -122,7 +122,7 @@ PathTreeNode *PathTreeCtrl::FindItem( const idStr &pathName ) { PathTreeNode *item, *parentItem; parentItem = NULL; - item = GetRootItem(); + item = GetChildItem( GetRootItem() ); lastSlash = pathName.Last( '/' );