From c24486f1c07d94d554a1c6baef93ce1b482fec87 Mon Sep 17 00:00:00 2001 From: twevs <77587819+twevs@users.noreply.github.com> Date: Tue, 16 May 2023 15:25:29 +0100 Subject: [PATCH] Play Level Sequence: fixed 'Pause at End' option. (#156) --- .../Flow/Private/Nodes/World/FlowNode_PlayLevelSequence.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Flow/Private/Nodes/World/FlowNode_PlayLevelSequence.cpp b/Source/Flow/Private/Nodes/World/FlowNode_PlayLevelSequence.cpp index d9ee71cc..81e0ac77 100644 --- a/Source/Flow/Private/Nodes/World/FlowNode_PlayLevelSequence.cpp +++ b/Source/Flow/Private/Nodes/World/FlowNode_PlayLevelSequence.cpp @@ -270,7 +270,10 @@ void UFlowNode_PlayLevelSequence::Cleanup() { SequencePlayer->SetFlowEventReceiver(nullptr); SequencePlayer->OnFinished.RemoveAll(this); - SequencePlayer->Stop(); + if (!PlaybackSettings.bPauseAtEnd) + { + SequencePlayer->Stop(); + } SequencePlayer = nullptr; }