Fix some issues: 1. Monitors not running anymore if you change categories 2. Visual reports not showing 3. threads acquiring properties of old thread when restarting thread

This commit is contained in:
DD Liu 2017-05-11 17:11:06 -04:00
parent 6b774c58f5
commit 2a7f3edda6
2 changed files with 11 additions and 4 deletions
src/engine

View file

@ -30,7 +30,12 @@ const execute = function (sequencer, thread) {
const currentBlockId = thread.peekStack();
const currentStackFrame = thread.peekStackFrame();
let blockContainer = target.blocks;
let blockContainer;
if (thread.updateMonitor) {
blockContainer = runtime.monitorBlocks;
} else {
blockContainer = target.blocks;
}
let block = blockContainer.getBlock(currentBlockId);
if (typeof block === 'undefined') {
blockContainer = runtime.flyoutBlocks;