Skip to content

Commit a1e0575

Browse files
authored
Revert real time playback being enabled by default (#3150)
1 parent 84470b6 commit a1e0575

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

editor/src/messages/animation/animation_message_handler.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ impl MessageHandler<AnimationMessage, ()> for AnimationMessageHandler {
9999
}
100100
}
101101
AnimationMessage::UpdateTime => {
102-
responses.add(PortfolioMessage::SubmitActiveGraphRender);
103-
if self.is_playing() && self.live_preview_recently_zero {
104-
// Update the restart and pause/play buttons
105-
responses.add(PortfolioMessage::UpdateDocumentWidgets);
106-
self.live_preview_recently_zero = false;
102+
if self.is_playing() {
103+
responses.add(PortfolioMessage::SubmitActiveGraphRender);
104+
if self.live_preview_recently_zero {
105+
// Update the restart and pause/play buttons
106+
responses.add(PortfolioMessage::UpdateDocumentWidgets);
107+
self.live_preview_recently_zero = false;
108+
}
107109
}
108110
}
109111
AnimationMessage::RestartAnimation => {

0 commit comments

Comments
 (0)