2
0
Эх сурвалжийг харах

Merge pull request #1819 from Areloch/PrefabTabFolderFix

Fixes prefabs in root dirs having extra folders in creator.
Areloch 8 жил өмнө
parent
commit
c947b70af6

+ 1 - 1
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 );            
          }

+ 1 - 1
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 );            
          }