Files
UnrealEngineUWP/Engine/Source/Editor/AssetPlacementEdMode/Private/AssetPlacementSettings.cpp
brooke hubert c3dd003208 Dragging after placement now allows for scale and rotate.
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]
2021-03-02 13:31:36 -04:00

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