on master help sign in
Make "Restart" work properly
d6201eeEvan Czaplicki
runtime/Debugger.js+4−2
@@ -227,8 +227,10 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
227 }
227 }
228
228
229 function redrawGraphics() {
229 function redrawGraphics() {
230− var graphicsNode = debugModule.moduleInstance.main.kids[0];
230+ var main = debugModule.moduleInstance.main
231+ for (var i = main.kids.length ; i-- ; ) {
231− graphicsNode.recv(Date.now(), true, debugModule.moduleInstance.main.id);
232+ main.kids[i].recv(Date.now(), true, main.id);
233+ }
232 }
234 }
233
235
234 function getHotSwapState() {
236 function getHotSwapState() {