|
@@ -527,6 +527,7 @@ function AssetBrowser::buildAssetPreview( %this, %asset, %moduleName )
|
|
%previewButton.iconLocation = "Left";
|
|
%previewButton.iconLocation = "Left";
|
|
%previewButton.textLocation = "Right";
|
|
%previewButton.textLocation = "Right";
|
|
%previewButton.setextent(120,20);
|
|
%previewButton.setextent(120,20);
|
|
|
|
+ %previewButton.buttonMargin = "0 0";
|
|
|
|
|
|
AssetBrowser.previewListMode = true;
|
|
AssetBrowser.previewListMode = true;
|
|
}
|
|
}
|
|
@@ -1519,7 +1520,11 @@ function AssetBrowser::doRebuildAssetArray(%this)
|
|
{
|
|
{
|
|
if(AssetBrowser.assetTypeFilter !$= "")
|
|
if(AssetBrowser.assetTypeFilter !$= "")
|
|
{
|
|
{
|
|
- if(AssetBrowser.assetTypeFilter $= %assetType)
|
|
|
|
|
|
+ %filtersCount = getWordCount(AssetBrowser.assetTypeFilter);
|
|
|
|
+ for(%fltrIdx = 0; %fltrIdx < %filtersCount; %fltrIdx++)
|
|
|
|
+ {
|
|
|
|
+ %fltr = getWord(AssetBrowser.assetTypeFilter, %fltrIdx);
|
|
|
|
+ if(%fltr $= %assetType)
|
|
{
|
|
{
|
|
$AssetBrowser::AssetArray.add( %moduleName, %assetId );
|
|
$AssetBrowser::AssetArray.add( %moduleName, %assetId );
|
|
|
|
|
|
@@ -1527,6 +1532,7 @@ function AssetBrowser::doRebuildAssetArray(%this)
|
|
%finalAssetCount++;
|
|
%finalAssetCount++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
else
|
|
else
|
|
{
|
|
{
|
|
//got it.
|
|
//got it.
|
|
@@ -1574,7 +1580,22 @@ function AssetBrowser::doRebuildAssetArray(%this)
|
|
}
|
|
}
|
|
|
|
|
|
//Add Non-Asset Scripted Objects. Datablock, etc based
|
|
//Add Non-Asset Scripted Objects. Datablock, etc based
|
|
- if(AssetBrowser.assetTypeFilter $= "" && %breadcrumbPath !$= "" && isDirectory(%breadcrumbPath))
|
|
|
|
|
|
+ %hasDBFilter = true;
|
|
|
|
+ if(AssetBrowser.assetTypeFilter !$= "")
|
|
|
|
+ {
|
|
|
|
+ %hasDBFilter = false;
|
|
|
|
+ %filterCount = getWordCount(AssetBrowser.assetTypeFilter);
|
|
|
|
+ for(%fltrIdx = 0; %fltrIdx < %filterCount; %fltrIdx++)
|
|
|
|
+ {
|
|
|
|
+ %fltr = getWord(AssetBrowser.assetTypeFilter, %fltrIdx);
|
|
|
|
+ if(%fltr $= "Datablock" || %fltr $= "Datablocks")
|
|
|
|
+ {
|
|
|
|
+ %hasDBFilter = true;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(%hasDBFilter && %breadcrumbPath !$= "" && isDirectory(%breadcrumbPath))
|
|
{
|
|
{
|
|
%category = getWord( %breadcrumbPath, 1 );
|
|
%category = getWord( %breadcrumbPath, 1 );
|
|
%dataGroup = "DataBlockGroup";
|
|
%dataGroup = "DataBlockGroup";
|
|
@@ -1792,6 +1813,10 @@ function AssetBrowser::doRebuildAssetArray(%this)
|
|
%name = %creatorObj.val[1];
|
|
%name = %creatorObj.val[1];
|
|
%func = %creatorObj.val[2];
|
|
%func = %creatorObj.val[2];
|
|
|
|
|
|
|
|
+ %searchActive = AssetSearchTerms.count() != 0;
|
|
|
|
+ if(%searchActive && !matchesSearch(%name, "Creator"))
|
|
|
|
+ continue;
|
|
|
|
+
|
|
$AssetBrowser::AssetArray.add( %name, "Creator" TAB %creatorObj );
|
|
$AssetBrowser::AssetArray.add( %name, "Creator" TAB %creatorObj );
|
|
}
|
|
}
|
|
}
|
|
}
|