Skip to content

Commit

Permalink
Merge pull request #1321 from Azaezel/alpha41/ABbits
Browse files Browse the repository at this point in the history
asset browser spam kill
  • Loading branch information
Azaezel authored Sep 23, 2024
2 parents fe3e473 + 8461b9d commit 5c83972
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ function AssetBrowser::doRefresh(%this)

function AssetBrowser::populatePreviewImages(%this)
{
echo("AssetBrowser::populatePreviewImages() - Previews to generate: " @ AssetPreviewArray.count());
if (AssetPreviewArray.count()>0)
echo("AssetBrowser::populatePreviewImages() - Previews to generate: " @ AssetPreviewArray.count());

for(%i=0; %i < AssetPreviewArray.count(); %i++)
{
%previewButton = AssetPreviewArray.getKey(%i);
Expand Down Expand Up @@ -1490,7 +1492,8 @@ function AssetBrowser::rebuildAssetArray(%this)
if(!%this.previewArrayDirty)
{
%this.previewArrayDirty = true;
%this.schedule(16, "doRebuildAssetArray");
cancel(%this.pendingRebuild);
%this.pendingRebuild = %this.schedule(16, "doRebuildAssetArray");
}
}

Expand Down Expand Up @@ -2863,6 +2866,5 @@ function AssetBrowserWindow::onResize(%this, %posX, %posY, %width, %height)
AssetBrowser-->assetList.fillRowFirst = true;
else
AssetBrowser-->assetList.fillRowFirst = false;

AssetBrowser.doRebuildAssetArray();
AssetBrowser.rebuildAssetArray();
}

0 comments on commit 5c83972

Please sign in to comment.