Draw multiple windows. Fix decl existence check.

This commit is contained in:
Artyom Shalkhakov 2025-02-10 23:30:20 -07:00
parent 350b6a5a97
commit f815130206
2 changed files with 6 additions and 6 deletions

View file

@ -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();
}
}

View file

@ -122,7 +122,7 @@ PathTreeNode *PathTreeCtrl::FindItem( const idStr &pathName ) {
PathTreeNode *item, *parentItem;
parentItem = NULL;
item = GetRootItem();
item = GetChildItem( GetRootItem() );
lastSlash = pathName.Last( '/' );