renderer: animations should stop if config changes them

This commit is contained in:
Mitchell Hashimoto
2023-11-17 20:56:31 -08:00
parent 5d7c47a469
commit a64d12d3cb

View File

@ -310,6 +310,11 @@ fn drainMailbox(self: *Thread) !void {
.change_config => |config| {
defer config.alloc.destroy(config.ptr);
try self.renderer.changeConfig(config.ptr);
// Stop and start the draw timer to capture the new
// hasAnimations value.
self.stopDrawTimer();
self.startDrawTimer();
},
.inspector => |v| self.flags.has_inspector = v,