You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Tutorials are now restarted when taken if they were previously completed
Override parameter passed in to LaunchTutorial when the tutorial has been completed already. TTP# 348110 - EDITOR: TUTORIALS: Completed tutorials should always restart when re-taken [CL 2315684 by Thomas Sarkanen in Main branch]
This commit is contained in:
committed by
UnrealBot
parent
f7729605e0
commit
cf68744ac8
@@ -106,6 +106,12 @@ void STutorialRoot::LaunchTutorial(UEditorTutorial* InTutorial, bool bInRestart,
|
||||
{
|
||||
CurrentTutorial = InTutorial;
|
||||
|
||||
// we force a restart if this tutorial was completed
|
||||
if(GetDefault<UTutorialStateSettings>()->HaveCompletedTutorial(CurrentTutorial))
|
||||
{
|
||||
bInRestart = true;
|
||||
}
|
||||
|
||||
bool bHaveSeenTutorial = false;
|
||||
CurrentTutorialStage = bInRestart ? 0 : GetDefault<UTutorialStateSettings>()->GetProgress(CurrentTutorial, bHaveSeenTutorial);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user