Duplicating assets should keep a perforce relationship to the original file

#rb Brooke.Hubert
#jira

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 21119014 via CL 21119416 via CL 21119491
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21142516 by marc audy in ue5-main branch]
This commit is contained in:
marc audy
2022-07-17 22:46:56 -04:00
parent 4fd3530082
commit 0edc19c939
6 changed files with 84 additions and 33 deletions

View File

@@ -699,7 +699,7 @@ UObject* UAssetToolsImpl::PerformDuplicateAsset(const FString& AssetName, const
FEditorFileUtils::PromptForCheckoutAndSave(OutermostPackagesToSave, bCheckDirty, bPromptToSave);
// now attempt to branch, we can do this now as we should have a file on disk
SourceControlHelpers::BranchPackage(NewObject->GetOutermost(), OriginalObject->GetOutermost());
SourceControlHelpers::CopyPackage(NewObject->GetOutermost(), OriginalObject->GetOutermost());
}
// analytics create record