You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
22 lines
704 B
C++
22 lines
704 B
C++
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "AnimBlueprintDetails.h"
|
||
|
|
#include "Animation/AnimBlueprint.h"
|
||
|
|
#include "DetailLayoutBuilder.h"
|
||
|
|
|
||
|
|
#define LOCTEXT_NAMESPACE "AnimBlueprintDetails"
|
||
|
|
|
||
|
|
void FAnimBlueprintDetails::CustomizeDetails(IDetailLayoutBuilder& DetailBuilder)
|
||
|
|
{
|
||
|
|
TArray<TWeakObjectPtr<UObject>> Objects;
|
||
|
|
DetailBuilder.GetObjectsBeingCustomized(Objects);
|
||
|
|
UAnimBlueprint* Asset = CastChecked<UAnimBlueprint>(Objects[0].Get());
|
||
|
|
|
||
|
|
if(Asset->bIsTemplate)
|
||
|
|
{
|
||
|
|
TSharedRef<IPropertyHandle> TargetSkeletonHandle = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UAnimBlueprint, TargetSkeleton));
|
||
|
|
TargetSkeletonHandle->MarkHiddenByCustomization();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#undef LOCTEXT_NAMESPACE
|