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:
Marc Audy
2018-01-11 16:07:16 -05:00
parent 13d012685f
commit 994a524453
281 changed files with 11027 additions and 14544 deletions

View File

@@ -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);
}
}
}