Fix incorrectly set start scene type when extending scquence with groups

This would result in extended sequences being aborted early whenever one
would try to extend after a scene group entry
This commit is contained in:
WarmUpTill 2021-10-20 20:06:21 +02:00 committed by WarmUpTill
parent d743260ca8
commit 4af07d9d55

View File

@ -392,6 +392,11 @@ SceneSequenceSwitch *SceneSequenceSwitch::extend()
}
extendedSequence = std::make_unique<SceneSequenceSwitch>();
extendedSequence->startScene = scene;
if (targetType == SwitchTargetType::SceneGroup) {
extendedSequence->startScene = nullptr;
extendedSequence->startTargetType =
SwitchTargetType::SceneGroup;
}
return extendedSequence.get();
}