Repository navigation
libobs: Remove item transitions in toggled groups - #14210
Open
eliasthompson wants to merge 1 commit into
Open
eliasthompson wants to merge 1 commit into
eliasthompson wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
obs_sceneitem_set_visiblefunction no longer triggers each child's show/hide transition of a group when that group's visibility is toggled, both to align with derrod's desired behavior as documented in #11446 of a visibility toggle should only relate to the item's transitions itself, and not any children's, and to fix the issue as documented at #5551 of ghost sources in the mixer. As a result,group_item_transitionwas no longer used and is removed. Only the group transitions themselves trigger now. Child transitions still fire fine when directly toggled. This PR fixes #5551.Motivation and Context
Issue #5551 was starting to cause issues with my setup and so I dug into both how it could be fixed and what was desired in how it should be fixed. Basically when a group is hidden, the child transition currently starts and is counted as active. Because OBS only draws a finishing transition when the child itself is hidden, the transition never ends, and the child source remains in the mixer, causing plugins,
obs-websocket, etc. to see it as active when it shouldn't. Relates to #11446 and implements derrod's desired behavior.How Has This Been Tested?
Tested on Windows 11 (only) off of
masterab5c0b911, using VS Build Tools 2026 and thewindows-x64preset, run in portable mode. I setup a looping media source with a fade show/hide transition and a text source with a swipe show transition. I hid the group after showing it:Before this commit, the media source would stay in the mixer and in
obs-websocket'sGetSourceActive. After it didn't.I then showed the group:
Before, the text swiped in. After, it does not. Tested as many edge cases as I could think of including quick/interrupted toggles, transitions on the group itself, and various regression checks, all clear.
Types of changes
Checklist
I have read the contributing document.
My code has been run through clang-format.
My code follows the project's style guidelines
My code is not on the master branch.
My code has been tested.
All commit messages are properly formatted and commits squashed where appropriate.
I have included updates to all appropriate documentation.
I have used AI tooling in the creation of this PR
Note: AI was used to help me research the issue root cause and history, point me to what code changes I should make, test the fix while taking screenshots, and help me understand proper submission process. I did all changes, commits, and submissions myself.