Merge pull request #614 from DraconicEnt/bugfix-select-asset-path

* BugFix: Correct the SelectAssetPath Window not Listing any Paths
This commit is contained in:
Jeff Hutchinson 2021-10-10 23:23:38 -04:00 committed by GitHub
commit 66887a930b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -216,7 +216,7 @@ function directoryHandler::getFolderTreeItemFromAddress(%this, %address)
//break down the address
%folderCount = getTokenCount(%address, "/");
if(startsWith(%address, "Data/") || startsWith(%address, "Tools/") || startsWith(%address, "Core/"))
if(startsWith(%address, "data/") || startsWith(%address, "tools/") || startsWith(%address, "core/"))
{
%curItem = %this.treeCtrl.findChildItemByName(1, "Modules");
}
@ -242,7 +242,7 @@ function directoryHandler::expandTreeToAddress(%this, %address)
%rootId = AssetBrowser-->filterTree.findItemByName("Content");
%this.treeCtrl.expandItem(%rootId);
if(startsWith(%address, "Data/") || startsWith(%address, "Tools/") || startsWith(%address, "Core/"))
if(startsWith(%address, "data/") || startsWith(%address, "tools/") || startsWith(%address, "core/"))
{
%curItem = %this.treeCtrl.findChildItemByName(1, "Modules");
}

View file

@ -22,7 +22,7 @@ function SelectAssetPath::showDialog(%this, %startingPath, %callback, %promptTex
%this.callback = %callback;
%dataItem = SelectAssetPath-->folderTree.insertItem(0, "Data");
%this.dirHandler.loadFolders("Data", %dataItem);
%this.dirHandler.loadFolders("data", %dataItem);
%this.dirHandler.expandTreeToAddress(%startingPath);
%id = %this.dirHandler.getFolderTreeItemFromAddress(%startingPath);
@ -60,4 +60,4 @@ function SelectAssetPath::newFolder(%this)
{
AssetBrowser_newFolderNameTxt.text = "NewFolder";
Canvas.pushDialog(AssetBrowser_newFolder);
}
}