23 lines
646 B
C++
23 lines
646 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "GroomCacheActions.h"
|
|
#include "EditorFramework/AssetImportData.h"
|
|
#include "GroomCustomAssetEditorToolkit.h"
|
|
|
|
FLinearColor UAssetDefinition_GroomCacheAsset::GetAssetColor() const
|
|
{
|
|
return FColor::White;
|
|
}
|
|
|
|
void UAssetDefinition_GroomCacheAsset::GetResolvedSourceFilePaths(const TArray<UObject*>& TypeAssets, TArray<FString>& OutSourceFilePaths) const
|
|
{
|
|
for (UObject* Asset : TypeAssets)
|
|
{
|
|
const UGroomCache* GroomCache = Cast<UGroomCache>(Asset);
|
|
if (GroomCache && GroomCache->AssetImportData)
|
|
{
|
|
GroomCache->AssetImportData->ExtractFilenames(OutSourceFilePaths);
|
|
}
|
|
}
|
|
}
|