Node colours are now driven by combo input assets, and overridden by the combo action if a colour is set there.
This commit is contained in:
@@ -84,16 +84,6 @@ void UEdComboActionGraphNode::AutowireNewNode(UEdGraphPin* FromPin)
|
||||
|
||||
FLinearColor UEdComboActionGraphNode::GetBackgroundColor() const
|
||||
{
|
||||
// Getting Node colour based on the Settings if any found, otherwise use this logic
|
||||
if (UComboActionGraphEditorSettings *GraphEditorSettings = GetMutableDefault<UComboActionGraphEditorSettings>())
|
||||
{
|
||||
FLinearColor ReturnColour;
|
||||
if (GraphEditorSettings->FindNodeBackgroundColourOverride(this->ComboActionGraphNode->GetClass(), ReturnColour))
|
||||
{
|
||||
return ReturnColour;
|
||||
}
|
||||
}
|
||||
|
||||
return this->ComboActionGraphNode ? this->ComboActionGraphNode->GetBackgroundColor() : FLinearColor::Black;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user