mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
* [x86UNIXFileio] BugFix: Correct an error in the initial call to recurseDumpDirectories that causes an empty list of directories to always be returned.
* [UI Module] BugFix: Change module directory name to uppercase for matching the declared module name in its module file for asset tree browsing to work correctly on case sensitive systems.
This commit is contained in:
parent
9dd9e9fae5
commit
3a4f0e8808
511 changed files with 13 additions and 13 deletions
|
|
@ -541,7 +541,7 @@ function AssetBrowser::doRefresh(%this)
|
|||
%this.navigateTo(%this.dirHandler.currentAddress);
|
||||
|
||||
//Forces a clean collapse of the tree for any not-really-exposed items
|
||||
%dataItem = AssetBrowser-->filterTree.findItemByName("Data");
|
||||
%dataItem = AssetBrowser-->filterTree.findItemByName("data");
|
||||
|
||||
AssetBrowser-->filterTree.expandItem(%dataItem, false);
|
||||
AssetBrowser-->filterTree.expandItem(%dataItem);
|
||||
|
|
@ -578,11 +578,11 @@ function AssetBrowser::loadDirectories( %this )
|
|||
|
||||
AssetBrowser-->filterTree.modulesIdx = AssetBrowser-->filterTree.insertItem(1, "Modules");
|
||||
|
||||
%dataItem = AssetBrowser-->filterTree.insertItem(AssetBrowser-->filterTree.modulesIdx, "Data");
|
||||
%dataItem = AssetBrowser-->filterTree.insertItem(AssetBrowser-->filterTree.modulesIdx, "data");
|
||||
AssetBrowser-->filterTree.tagsIdx = AssetBrowser-->filterTree.insertItem(1, "Tags");
|
||||
AssetBrowser-->filterTree.creatorIdx = AssetBrowser-->filterTree.insertItem(1, "Creator");
|
||||
|
||||
%this.dirHandler.loadFolders("Data", %dataItem);
|
||||
%this.dirHandler.loadFolders("data", %dataItem);
|
||||
|
||||
%this.loadCollectionSets();
|
||||
|
||||
|
|
@ -593,15 +593,15 @@ function AssetBrowser::loadDirectories( %this )
|
|||
//If set to, show core
|
||||
if(EditorSettings.value("Assets/Browser/showCoreModule", false) == 1)
|
||||
{
|
||||
%coreItem = AssetBrowser-->filterTree.insertItem(AssetBrowser-->filterTree.modulesIdx, "Core");
|
||||
%this.dirHandler.loadFolders("Core", %coreItem);
|
||||
%coreItem = AssetBrowser-->filterTree.insertItem(AssetBrowser-->filterTree.modulesIdx, "core");
|
||||
%this.dirHandler.loadFolders("core", %coreItem);
|
||||
}
|
||||
|
||||
//If set to, show tools
|
||||
if(EditorSettings.value("Assets/Browser/showToolsModule", false) == 1)
|
||||
{
|
||||
%toolsItem = AssetBrowser-->filterTree.insertItem(AssetBrowser-->filterTree.modulesIdx, "Tools");
|
||||
%this.dirHandler.loadFolders("Tools", %toolsItem);
|
||||
%toolsItem = AssetBrowser-->filterTree.insertItem(AssetBrowser-->filterTree.modulesIdx, "tools");
|
||||
%this.dirHandler.loadFolders("tools", %toolsItem);
|
||||
}
|
||||
|
||||
//Add Non-Asset Scripted Objects. Datablock, etc based
|
||||
|
|
@ -673,7 +673,7 @@ function AssetBrowser::loadDirectories( %this )
|
|||
AssetBrowser.newModuleId = "";
|
||||
}
|
||||
|
||||
//%dataItem = AssetBrowser-->filterTree.findItemByName("Data");
|
||||
//%dataItem = AssetBrowser-->filterTree.findItemByName("data");
|
||||
//AssetBrowser-->filterTree.expandItem(%dataItem);
|
||||
|
||||
AssetBrowser.dirHandler.expandTreeToAddress(AssetBrowser.dirHandler.currentAddress);
|
||||
|
|
@ -1204,14 +1204,14 @@ function AssetBrowserFilterTree::onRightMouseDown(%this, %itemId)
|
|||
}
|
||||
else
|
||||
{
|
||||
if( %this.getSelectedItemsCount() > 0 && (%itemText !$= "Data" && %itemText !$= "Core" && %itemText !$= "Tools"))
|
||||
if( %this.getSelectedItemsCount() > 0 && (%itemText !$= "data" && %itemText !$="core" && %itemText !$= "tools"))
|
||||
{
|
||||
//AddNewAssetPopup.showPopup(Canvas);
|
||||
|
||||
//We have something clicked, so figure out if it's a sub-filter or a module filter, then push the correct
|
||||
//popup menu
|
||||
%parentItem = %this.getParentItem(%itemId);
|
||||
if(%this.getItemText(%parentItem) $= "Data") //if it's a data module, continue
|
||||
if(%this.getItemText(%parentItem) $= "data") //if it's a data module, continue
|
||||
{
|
||||
//find out if it's a folder or a module!
|
||||
if(ModuleDatabase.findModule(%itemText))
|
||||
|
|
@ -1233,11 +1233,11 @@ function AssetBrowserFilterTree::onRightMouseDown(%this, %itemId)
|
|||
EditFolderPopup.assetType = "Folder";
|
||||
}
|
||||
}
|
||||
else if(%itemText $= "Data")
|
||||
else if(%itemText $= "data")
|
||||
{
|
||||
AddNewModulePopup.showPopup(Canvas);
|
||||
}
|
||||
else if(%itemText $= "Tools")
|
||||
else if(%itemText $= "tools")
|
||||
{
|
||||
AddNewToolPopup.showPopup(Canvas);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue