From 3c4bc269b2cb42322d9d7271d5e9140b4b1a632f Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Mon, 8 Sep 2025 10:26:58 +0200 Subject: [PATCH] Revert real time playback being enabled by default --- .../messages/animation/animation_message_handler.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 => {