mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Fix scene groups not being selected when using more than one entry on the Random tab. (#143)
This commit is contained in:
@@ -52,8 +52,15 @@ void SwitcherData::checkRandom(bool &match, OBSWeakSource &scene,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (r.scene == lastRandomScene && randomSwitches.size() != 1) {
|
||||
continue;
|
||||
if (randomSwitches.size() != 1) {
|
||||
if (r.targetType == SwitchTargetType::Scene &&
|
||||
r.scene == lastRandomScene) {
|
||||
continue;
|
||||
} else if (r.targetType ==
|
||||
SwitchTargetType::SceneGroup &&
|
||||
r.group && r.group == lastRandomSceneGroup) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
scene = r.getScene();
|
||||
@@ -61,6 +68,7 @@ void SwitcherData::checkRandom(bool &match, OBSWeakSource &scene,
|
||||
delay = (int)r.delay * 1000;
|
||||
match = true;
|
||||
lastRandomScene = r.scene;
|
||||
lastRandomSceneGroup = r.group;
|
||||
|
||||
if (verbose) {
|
||||
r.logMatch();
|
||||
|
||||
Reference in New Issue
Block a user