diff --git a/Templates/Empty/game/tools/worldEditor/scripts/editors/creator.ed.cs b/Templates/Empty/game/tools/worldEditor/scripts/editors/creator.ed.cs index 9dbfb91bb..0e2813d57 100644 --- a/Templates/Empty/game/tools/worldEditor/scripts/editors/creator.ed.cs +++ b/Templates/Empty/game/tools/worldEditor/scripts/editors/creator.ed.cs @@ -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 ); } diff --git a/Templates/Full/game/tools/worldEditor/scripts/editors/creator.ed.cs b/Templates/Full/game/tools/worldEditor/scripts/editors/creator.ed.cs index 9dbfb91bb..0e2813d57 100644 --- a/Templates/Full/game/tools/worldEditor/scripts/editors/creator.ed.cs +++ b/Templates/Full/game/tools/worldEditor/scripts/editors/creator.ed.cs @@ -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 ); }