libobs: Reset manual state when forcing transition target

Fixes an issue where the manual transition point would not be reset to 0
when the transition's current target is overridden and explicitly set.
master
jp9000 2020-03-14 16:25:46 -07:00
parent 360af79db2
commit 563e2434c0
1 changed files with 2 additions and 0 deletions

View File

@ -454,6 +454,8 @@ void obs_transition_set(obs_source_t *transition, obs_source_t *source)
transition->transition_sources[0] = source; transition->transition_sources[0] = source;
transition->transitioning_video = false; transition->transitioning_video = false;
transition->transitioning_audio = false; transition->transitioning_audio = false;
transition->transition_manual_val = 0.0f;
transition->transition_manual_target = 0.0f;
unlock_transition(transition); unlock_transition(transition);
for (size_t i = 0; i < 2; i++) { for (size_t i = 0; i < 2; i++) {