Copying //UE4/Dev-Core @ 10708550 to Dev-Main (//UE4/Dev-Main)

#rb none

[CL 10708666 by Robert Manuszewski in Main branch]
This commit is contained in:
Robert Manuszewski
2019-12-13 11:07:03 -05:00
parent dd6d18fe94
commit 7b6f840f7f
1762 changed files with 46079 additions and 19508 deletions
@@ -188,7 +188,7 @@ void UK2Node_Literal::GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRe
{
if (Bindings.Num() == 1)
{
const AActor* ActorObj = CastChecked<AActor>(Bindings.CreateConstIterator()->Get());
const AActor* ActorObj = Bindings.CreateConstIterator()->Get<AActor>();
UiSpecOut->MenuName = FText::Format( NSLOCTEXT("K2Node", "LiteralTitle", "Create a Reference to {0}"),
FText::FromString(ActorObj->GetActorLabel()) );
@@ -205,11 +205,12 @@ void UK2Node_Literal::GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRe
FText::AsNumber(Bindings.Num()) );
auto BindingIt = Bindings.CreateConstIterator();
UClass* CommonClass = BindingIt->Get()->GetClass();
UObject* Binding = BindingIt->Get<UObject>();
check(Binding); // Can the binding object be an FProperty?
UClass* CommonClass = Binding->GetClass();
for (++BindingIt; BindingIt; ++BindingIt)
{
UClass* Class = BindingIt->Get()->GetClass();
UClass* Class = BindingIt->Get<UObject>()->GetClass(); // Can the binding object be an FProperty?
while (!Class->IsChildOf(CommonClass))
{
CommonClass = CommonClass->GetSuperClass();