mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
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:
parent
1a851f167d
commit
15db25c0b8
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue