UI: Simplify fade to black code
Removes unnecessary function call.
This commit is contained in:
parent
a7b20fcd2a
commit
c2bc5e675c
1 changed files with 1 additions and 3 deletions
|
|
@ -415,10 +415,8 @@ void OBSBasic::TransitionToScene(OBSSource source, bool force,
|
|||
}
|
||||
|
||||
if (black && !prevFTBSource) {
|
||||
prevFTBSource = source;
|
||||
source = nullptr;
|
||||
prevFTBSource =
|
||||
obs_transition_get_active_source(transition);
|
||||
obs_source_release(prevFTBSource);
|
||||
} else if (black && prevFTBSource) {
|
||||
source = prevFTBSource;
|
||||
prevFTBSource = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue