|
@@ -93,9 +93,11 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
|
{
|
|
{
|
|
if (main->IsPreviewProgramMode()) {
|
|
if (main->IsPreviewProgramMode()) {
|
|
QMetaObject::invokeMethod(main, "TransitionToScene",
|
|
QMetaObject::invokeMethod(main, "TransitionToScene",
|
|
|
|
+ WaitConnection(),
|
|
Q_ARG(OBSSource, OBSSource(scene)));
|
|
Q_ARG(OBSSource, OBSSource(scene)));
|
|
} else {
|
|
} else {
|
|
QMetaObject::invokeMethod(main, "SetCurrentScene",
|
|
QMetaObject::invokeMethod(main, "SetCurrentScene",
|
|
|
|
+ WaitConnection(),
|
|
Q_ARG(OBSSource, OBSSource(scene)),
|
|
Q_ARG(OBSSource, OBSSource(scene)),
|
|
Q_ARG(bool, false));
|
|
Q_ARG(bool, false));
|
|
}
|
|
}
|