Files
UnrealEngineUWP/Engine/Source/Runtime/AssetRegistry/Private/PackageDependencyData.cpp
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

19 lines
464 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "AssetRegistryPCH.h"
FName FPackageDependencyData::GetImportPackageName(int32 ImportIndex)
{
FName Result;
for (FPackageIndex LinkerIndex = FPackageIndex::FromImport(ImportIndex); !LinkerIndex.IsNull();)
{
FObjectResource* Resource = &ImpExp(LinkerIndex);
LinkerIndex = Resource->OuterIndex;
if ( LinkerIndex.IsNull() )
{
Result = Resource->ObjectName;
}
}
return Result;
}