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.
This commit is contained in:
jp9000 2017-11-28 03:37:19 -08:00
parent 51b226654f
commit 68e67366d2

View file

@ -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)