1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Made the animation stop playing on clear_canvases()

This stop the animation from playing when a new image is being created, or a file is being loaded.
This commit is contained in:
OverloadedOrama 2020-04-21 19:42:01 +03:00
parent c737ff3589
commit fef7627f73

View file

@ -575,6 +575,11 @@ func clear_canvases() -> void:
animation_tags.clear() animation_tags.clear()
self.animation_tags = animation_tags # To execute animation_tags_changed() self.animation_tags = animation_tags # To execute animation_tags_changed()
# Stop playing the animation
play_backwards.pressed = false
play_forward.pressed = false
animation_timer.stop()
window_title = "(" + tr("untitled") + ") - Pixelorama" window_title = "(" + tr("untitled") + ") - Pixelorama"
undo_redo.clear_history(false) undo_redo.clear_history(false)