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:
parent
51b226654f
commit
68e67366d2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user