Browse Source

UI: Clear fade to black source

If the fade to black was active and the user switched scene collections,
or exited studio mode, the source wouldn't be cleared, causing the
transition not to work properly when used again.
Clayton Groeneveld 4 years ago
parent
commit
0452f05595
2 changed files with 2 additions and 0 deletions
  1. 1 0
      UI/window-basic-main-transitions.cpp
  2. 1 0
      UI/window-basic-main.cpp

+ 1 - 0
UI/window-basic-main-transitions.cpp

@@ -1689,6 +1689,7 @@ void OBSBasic::SetPreviewProgramMode(bool enabled)
 
 
 		programScene = nullptr;
 		programScene = nullptr;
 		swapScene = nullptr;
 		swapScene = nullptr;
+		prevFTBSource = nullptr;
 
 
 		for (QuickTransition &qt : quickTransitions)
 		for (QuickTransition &qt : quickTransitions)
 			qt.button = nullptr;
 			qt.button = nullptr;

+ 1 - 0
UI/window-basic-main.cpp

@@ -4368,6 +4368,7 @@ void OBSBasic::ClearSceneData()
 	lastScene = nullptr;
 	lastScene = nullptr;
 	swapScene = nullptr;
 	swapScene = nullptr;
 	programScene = nullptr;
 	programScene = nullptr;
+	prevFTBSource = nullptr;
 
 
 	copyStrings.clear();
 	copyStrings.clear();
 	copyFiltersString = nullptr;
 	copyFiltersString = nullptr;