You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Control Rig: Remove popup asking to apply module to single or multiple targets
#jira UE-206642 #rb Helge.Mathee #rnx [CL 31430033 by sara schvartzman in 5.4 branch]
This commit is contained in:
@@ -1468,35 +1468,6 @@ void FControlRigSchematicModel::HandleSchematicDrop(SSchematicGraphPanel* InPane
|
||||
}
|
||||
SelectedNodes.AddUnique(InNode->GetNodeData());
|
||||
|
||||
if (SelectedNodes.Num() > 1)
|
||||
{
|
||||
FText Label;
|
||||
if(FControlRigSchematicRigElementKeyNode* ExistingElementKeyNode = Cast<FControlRigSchematicRigElementKeyNode>(InNode->GetNodeData()))
|
||||
{
|
||||
Label = FText::FromName(ExistingElementKeyNode->GetKey().Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
Label = InNode->GetNodeData()->GetLabel();
|
||||
}
|
||||
TSharedRef<SCustomDialog> ChooseSelectedDialog = SNew(SCustomDialog)
|
||||
.Title(LOCTEXT("Add modules", "Add modules to targets"))
|
||||
.Buttons({
|
||||
SCustomDialog::FButton(FText::Format(LOCTEXT("AddModuleToSingle", "Add module to {0}"), Label)),
|
||||
SCustomDialog::FButton(FText::Format(LOCTEXT("AddModuleToSelected", "Add module to {0} selected"), SelectedNodes.Num()))
|
||||
});
|
||||
|
||||
const int32 ButtonPressed = ChooseSelectedDialog->ShowModal();
|
||||
if (ButtonPressed < 0)
|
||||
{
|
||||
return; // Window closed
|
||||
}
|
||||
if (ButtonPressed == 0)
|
||||
{
|
||||
SelectedNodes.Reset();
|
||||
SelectedNodes.Add(InNode->GetNodeData());
|
||||
}
|
||||
}
|
||||
|
||||
for (FSchematicGraphNode* Node : SelectedNodes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user