You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Merging //UE4/Release-4.19 to Release-Staging-4.19 (//UE4/Release-Staging-4.19) @ 3833288
#rb none #jira no #rnx [CL 3833418 by Marc Audy in Staging-4.19 branch]
This commit is contained in:
@@ -26,13 +26,15 @@ void FLandscapeUIDetails::CustomizeDetails( IDetailLayoutBuilder& DetailBuilder
|
||||
{
|
||||
TArray<TWeakObjectPtr<UObject>> EditingObjects;
|
||||
DetailBuilder.GetObjectsBeingCustomized(EditingObjects);
|
||||
check(EditingObjects.Num() == 1);
|
||||
|
||||
ALandscape* Landscape = Cast<ALandscape>(EditingObjects[0].Get());
|
||||
|
||||
if (Landscape != nullptr && Landscape->NumSubsections == 1)
|
||||
if (EditingObjects.Num() == 1)
|
||||
{
|
||||
TSharedRef<IPropertyHandle> ComponentScreenSizeToUseSubSectionsProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ALandscapeProxy, ComponentScreenSizeToUseSubSections));
|
||||
DetailBuilder.HideProperty(ComponentScreenSizeToUseSubSectionsProp);
|
||||
ALandscape* Landscape = Cast<ALandscape>(EditingObjects[0].Get());
|
||||
|
||||
if (Landscape != nullptr && Landscape->NumSubsections == 1)
|
||||
{
|
||||
TSharedRef<IPropertyHandle> ComponentScreenSizeToUseSubSectionsProp = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(ALandscapeProxy, ComponentScreenSizeToUseSubSections));
|
||||
DetailBuilder.HideProperty(ComponentScreenSizeToUseSubSectionsProp);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user