Skip to content

Commit

Permalink
support enabling next move
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Jun 29, 2020
1 parent f6e2414 commit 6db1bf5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 13 additions & 3 deletions move-source-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,19 @@ void move_source_tick(void *data, float seconds)
filter),
MOVE_SOURCE_FILTER_ID) ==
0) {
move_source_start(
obs_obj_get_data(
filter));
struct move_source_info
*filter_data =
obs_obj_get_data(
filter);
if (move_source->start_trigger ==
START_TRIGGER_ENABLE_DISABLE &&
!obs_source_enabled(
filter_data->source))
obs_source_set_enabled(
filter_data
->source,
true);
move_source_start(filter_data);
}
}
}
Expand Down
16 changes: 13 additions & 3 deletions move-value-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,19 @@ void move_value_tick(void *data, float seconds)
strcmp(obs_source_get_unversioned_id(
filter),
MOVE_VALUE_FILTER_ID) == 0) {
move_value_start(
obs_obj_get_data(
filter));
struct move_value_info
*filter_data =
obs_obj_get_data(
filter);
if (move_value->start_trigger ==
START_TRIGGER_ENABLE_DISABLE &&
!obs_source_enabled(
filter_data->source))
obs_source_set_enabled(
filter_data
->source,
true);
move_value_start(filter_data);
}
}
}
Expand Down

0 comments on commit 6db1bf5

Please sign in to comment.