You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Ensure we handle missing / invalid data interfaces when loading Niagara Systems
#rb frank.fella #jira UE-194814 [CL 27719700 by stu mckenna in ue5-main branch]
This commit is contained in:
@@ -3371,6 +3371,13 @@ void UNiagaraComponent::CopyParametersFromAsset(bool bResetExistingOverrideParam
|
||||
{
|
||||
UNiagaraDataInterface* AssetDataInterface = AssetExposedParameters.GetDataInterface(i);
|
||||
UNiagaraDataInterface* OverrideDataInterface = OverrideParameters.GetDataInterface(i);
|
||||
if (!AssetDataInterface || !OverrideDataInterface)
|
||||
{
|
||||
const FNiagaraVariableBase* DIVariable = AssetExposedParameters.FindVariableFromDataInterfaceIndex(i);
|
||||
UE_LOG(LogNiagara, Error, TEXT("null data interface found for Variable(%s) System(%s) will not run."), DIVariable ? *DIVariable->GetName().ToString() : TEXT("Unknown"), *GetNameSafe(Asset));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AssetDataInterface != OverrideDataInterface)
|
||||
{
|
||||
// We must copy the data regardless as there is an expectation that data interfaces are always reset to the original state
|
||||
|
||||
Reference in New Issue
Block a user