diff --git a/editor/src/messages/animation/animation_message_handler.rs b/editor/src/messages/animation/animation_message_handler.rs index a2d22e5eae..89fa807b73 100644 --- a/editor/src/messages/animation/animation_message_handler.rs +++ b/editor/src/messages/animation/animation_message_handler.rs @@ -99,11 +99,13 @@ impl MessageHandler for AnimationMessageHandler { } } AnimationMessage::UpdateTime => { - responses.add(PortfolioMessage::SubmitActiveGraphRender); - if self.is_playing() && self.live_preview_recently_zero { - // Update the restart and pause/play buttons - responses.add(PortfolioMessage::UpdateDocumentWidgets); - self.live_preview_recently_zero = false; + if self.is_playing() { + responses.add(PortfolioMessage::SubmitActiveGraphRender); + if self.live_preview_recently_zero { + // Update the restart and pause/play buttons + responses.add(PortfolioMessage::UpdateDocumentWidgets); + self.live_preview_recently_zero = false; + } } } AnimationMessage::RestartAnimation => {