You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Added an option to prevent auto selection after placement for more rapid placing. #Jira UE-109548 #rb jamie.dale #ROBOMERGE-SOURCE: CL 15570959 in //UE5/Release-5.0-EarlyAccess/... #ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668) [CL 15570975 by brooke hubert in ue5-main branch]
40 lines
947 B
C++
40 lines
947 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AssetPlacementSettings.h"
|
|
|
|
bool UAssetPlacementSettings::CanEditChange(const FProperty* InProperty) const
|
|
{
|
|
if (!Super::CanEditChange(InProperty))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
const FName PropertyName = InProperty->GetFName();
|
|
if (PropertyName == GET_MEMBER_NAME_CHECKED(UAssetPlacementSettings, bAllowNegativeScale))
|
|
{
|
|
return bUseRandomScale;
|
|
}
|
|
|
|
if (PropertyName == GET_MEMBER_NAME_CHECKED(UAssetPlacementSettings, bAllowNegativeRotationX))
|
|
{
|
|
return bUseRandomRotationX;
|
|
}
|
|
|
|
if (PropertyName == GET_MEMBER_NAME_CHECKED(UAssetPlacementSettings, bAllowNegativeRotationY))
|
|
{
|
|
return bUseRandomRotationY;
|
|
}
|
|
|
|
if (PropertyName == GET_MEMBER_NAME_CHECKED(UAssetPlacementSettings, bAllowNegativeRotationZ))
|
|
{
|
|
return bUseRandomRotationZ;
|
|
}
|
|
|
|
if (PropertyName == GET_MEMBER_NAME_CHECKED(UAssetPlacementSettings, bInvertNormalAxis))
|
|
{
|
|
return bAlignToNormal;
|
|
}
|
|
|
|
return true;
|
|
}
|