From e9d1d66b8a1b3fc152e87385a03a0ba921daa68f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 5 Jan 2014 21:38:28 -0700 Subject: [PATCH] Make it so that created scenes are selected - When a scene is created it now is automatically selected and switched to. --- obs/window-basic-main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 9e753a0c2..3ef4e0f78 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -336,8 +336,11 @@ void OBSBasic::sceneAddClicked(wxCommandEvent &event) } obs_scene_t scene = obs_scene_create(name.c_str()); - obs_add_source(obs_scene_getsource(scene)); + source = obs_scene_getsource(scene); + obs_add_source(source); obs_scene_release(scene); + + obs_set_output_source(0, source); } }