Browse Source

UI: Fix bug with studio mode double-click switching

Fixes a bug where the OBSBasic::programScene variable would not be set
for the new program scene when switching scenes via double-clicking on
them.
jp9000 8 years ago
parent
commit
68e67366d2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UI/window-basic-main-transitions.cpp

+ 2 - 2
UI/window-basic-main-transitions.cpp

@@ -251,11 +251,11 @@ void OBSBasic::TransitionToScene(OBSSource source, bool force, bool direct)
 
 	OBSWeakSource lastProgramScene;
 	
-	if (usingPreviewProgram && !direct) {
+	if (usingPreviewProgram) {
 		lastProgramScene = programScene;
 		programScene = OBSGetWeakRef(source);
 
-		if (swapScenesMode && !force) {
+		if (swapScenesMode && !force && !direct) {
 			OBSSource newScene = OBSGetStrongRef(lastProgramScene);
 
 			if (!sceneDuplicationMode && newScene == source)