Fixes minor issue where if a prefab was in one of the root directories rather than further in the heirarchy, it would incorrectly add a folder of the prefab's name that contains the prefab in the creator menu's prefabs tab.

This commit is contained in:
Areloch 2016-10-26 00:51:05 -05:00
parent 1a851f167d
commit 15db25c0b8
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? // Is this file in the current folder?
if ( stricmp( %pathFolders, %address ) == 0 ) if ( (%dirCount == 0 && %address $= "") || stricmp( %pathFolders, %address ) == 0 )
{ {
%this.addPrefabIcon( %fullPath ); %this.addPrefabIcon( %fullPath );
} }

View file

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