Skip to content

Commit

Permalink
fix sticking move source filter
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed May 13, 2021
1 parent 3785313 commit d4ec167
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions move-source-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,14 @@ void move_source_tick(void *data, float seconds)

move_source->enabled = enabled;
}
if (move_source->enabled_match_moving &&
enabled != move_source->moving) {
if (enabled) {
move_source_start(move_source);
} else {
move_source_stop(move_source);
}
}
if (!move_source->moving || !enabled)
return;

Expand Down

0 comments on commit d4ec167

Please sign in to comment.