Merge pull request #1819 from Areloch/PrefabTabFolderFix

Fixes prefabs in root dirs having extra folders in creator.
This commit is contained in:
Areloch 2016-11-23 00:47:57 -06:00 committed by GitHub
commit c947b70af6
2 changed files with 2 additions and 2 deletions

View file

@ -486,7 +486,7 @@ function EWCreatorWindow::navigate( %this, %address )
}
// Is this file in the current folder?
if ( stricmp( %pathFolders, %address ) == 0 )
if ( (%dirCount == 0 && %address $= "") || stricmp( %pathFolders, %address ) == 0 )
{
%this.addPrefabIcon( %fullPath );
}

View file

@ -486,7 +486,7 @@ function EWCreatorWindow::navigate( %this, %address )
}
// Is this file in the current folder?
if ( stricmp( %pathFolders, %address ) == 0 )
if ( (%dirCount == 0 && %address $= "") || stricmp( %pathFolders, %address ) == 0 )
{
%this.addPrefabIcon( %fullPath );
}