From 2730eaaaecd917272c0f2750452b3e99e4986578 Mon Sep 17 00:00:00 2001 From: Ray Schamp <ray@scratch.mit.edu> Date: Tue, 27 Sep 2016 15:44:51 -0400 Subject: [PATCH] Begin animating after starting the VM --- src/components/gui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/gui.js b/src/components/gui.js index 37b119d0e..905fa47c5 100644 --- a/src/components/gui.js +++ b/src/components/gui.js @@ -29,6 +29,7 @@ class GUI extends React.Component { this.props.vm.attachRenderer(this.renderer); this.props.vm.createEmptyProject(); this.props.vm.start(); + requestAnimationFrame(this.animate); } animate () { this.props.vm.animationFrame(); -- GitLab