Merge pull request #1522 from marauder2k9-torque/PatchFix-folder-navigation-in-AB

Update assetbrowser.tscript with patch
This commit is contained in:
Brian Roberts 2025-07-11 07:56:42 -05:00 committed by GitHub
commit 23aa3b242c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2140,6 +2140,9 @@ function AssetBrowser::navigateTo(%this, %address, %historyNav)
if(startsWith(%address, "/")) if(startsWith(%address, "/"))
%address = strreplace(%address, "/", ""); %address = strreplace(%address, "/", "");
// Safety
%address = strreplace(%address, "//", "/");
//Don't bother navigating if it's to the place we already are //Don't bother navigating if it's to the place we already are
if(%this.dirHandler.currentAddress !$= %address) if(%this.dirHandler.currentAddress !$= %address)
{ {
@ -2853,4 +2856,4 @@ function AssetBrowserWindow::onResize(%this, %posX, %posY, %width, %height)
else else
AssetBrowser-->assetList.fillRowFirst = false; AssetBrowser-->assetList.fillRowFirst = false;
AssetBrowser.rebuildAssetArray(); AssetBrowser.rebuildAssetArray();
} }