Skip to content

UI: Reset duration when removing show/hide transition - #10511

Merged
Warchamp7 merged 1 commit into
obsproject:masterfrom
Warchamp7:source-transition-duration-reset
Apr 22, 2024
Merged

Warchamp7 merged 1 commit into
obsproject:masterfrom
Warchamp7:source-transition-duration-reset

Conversation

@Warchamp7

Copy link
Copy Markdown
Member

Description

Reset a scene items show/hide transition duration to 0 when selecting the 'None' option.

Motivation and Context

We currently treat the globally set transition time as a default when configuring a scene item Show/Hide transition. Once a show/hide transition gets set on a scene item, it is never cleared, meaning if a show/hide transition is removed by setting it to None, it will retain that duration if a transition is later set again, instead of using the global duration again.

How Has This Been Tested?

Configured show/hide transitions on multiple sources and ensured the main window global duration is only used as a default. Ensured that this value is properly reset when selecting None as a transition.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@WizardCM WizardCM added the kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. label Apr 13, 2024
@WizardCM

Copy link
Copy Markdown
Member

To confirm, this field defaults to 300ms

image

And setting the field in the Scene Transitions dock to 0 does set it to 300ms, so I think this change is fine? I approve especially of it only changing back to default when None is selected.

@Warchamp7 Warchamp7 added the area/ui-ux Anything to do with changes or additions to UI/UX elements. label Apr 15, 2024
@Warchamp7
Warchamp7 merged commit 93bedd2 into obsproject:master Apr 22, 2024
@RytoEX RytoEX added this to the OBS Studio (Next Version) milestone Apr 23, 2024
@Warchamp7
Warchamp7 deleted the source-transition-duration-reset branch July 2, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ui-ux Anything to do with changes or additions to UI/UX elements. kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants