void FEventGraphSample::Combine_Recurrent( const FEventGraphSamplePtr& Other ) { Combine( Other ); // Check other children. for( int32 ChildIndex = 0; ChildIndex < Other->_ChildrenPtr.Num(); ++ChildIndex ) { const FEventGraphSamplePtr& OtherChild = Other->_ChildrenPtr[ChildIndex]; FEventGraphSamplePtr ThisChild = FindChildPtr( OtherChild ); if( ThisChild.IsValid() ) { ThisChild->Combine_Recurrent( OtherChild ); } else { AddChildAndSetParentPtr( OtherChild->DuplicateWithHierarchyPtr() ); } } }
void FEventGraphData::Combine( const FEventGraphData& Other ) { RootEvent->Combine_Recurrent( Other.GetRoot() ); Description = FString::Printf( TEXT("Combine: %i"), GetNumFrames() ); }