2018-12-14 14:49:12 -05:00
|
|
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
2018-11-19 10:12:17 -05:00
|
|
|
|
|
|
|
|
#include "AdvancedCopyCustomization.h"
|
|
|
|
|
#include "Containers/UnrealString.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "AdvancedCopyCustomization"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UAdvancedCopyCustomization::UAdvancedCopyCustomization(const class FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
|
, bShouldGenerateRelativePaths(true)
|
|
|
|
|
{
|
|
|
|
|
FilterForExcludingDependencies.PackagePaths.Add(TEXT("/Engine"));
|
|
|
|
|
FilterForExcludingDependencies.PackagePaths.Add(TEXT("/Script"));
|
|
|
|
|
FilterForExcludingDependencies.bRecursivePaths = true;
|
|
|
|
|
FilterForExcludingDependencies.bRecursiveClasses = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UAdvancedCopyCustomization::SetPackageThatInitiatedCopy(const FString& InBasePackage)
|
|
|
|
|
{
|
|
|
|
|
FString TempPackage = InBasePackage;
|
|
|
|
|
if (!TempPackage.EndsWith(TEXT("/")))
|
|
|
|
|
{
|
|
|
|
|
TempPackage += TEXT("/");
|
|
|
|
|
}
|
|
|
|
|
PackageThatInitiatedCopy = TempPackage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|