Skip to content

Commit

Permalink
Eval placeholder args in show update method (from missionpinball#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Feb 22, 2024
1 parent e38d079 commit 10aaefc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mpf/assets/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def update(self, **kwargs):
Updates the values of a show while it runs. Currently supports only speed
and manual_advance properties.
"""
updated_values = {k: v for k, v in kwargs.items() if v is not None and v != getattr(self.show_config, k)}
updated_values = {k: v for k, v in kwargs.items() if v is not None}
if updated_values:
self.show_config = self.show_config._replace(**updated_values)

Expand Down
3 changes: 1 addition & 2 deletions mpf/config_players/show_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,9 @@ def _update(key, instance_dict, show, show_settings, queue, start_time, placehol
del show
del queue
del start_time
del placeholder_args
if key in instance_dict:
instance_dict[key].update(
speed=show_settings.get('speed'),
speed=show_settings['speed'].evaluate(placeholder_args),
manual_advance=show_settings.get('manual_advance')
)

Expand Down

0 comments on commit 10aaefc

Please sign in to comment.