chore: speech stops immediately when skipping/interrupting

This commit is contained in:
Duncan Brown authored and Julian Murgia committed 2022-12-04 18:36:00 +01:00
1 parent bd2f28214b
commit d955e2ef1b
1 file changed
+5
@@ -99,5 +99,10 @@ func speedup():
# The say command has been interrupted, cancel the dialog display # The say command has been interrupted, cancel the dialog display
func interrupt(): func interrupt():
if _dialog_player.get_children().has(_type_player): if _dialog_player.get_children().has(_type_player):
(
escoria.object_manager.get_object(escoria.object_manager.SPEECH).node\
as ESCSpeechPlayer
).set_state("off")
_dialog_player.remove_child(_type_player) _dialog_player.remove_child(_type_player)
emit_signal("say_finished") emit_signal("say_finished")