Merge branch 'develop' of https://github.com/LLK/scratch-vm into feature/serialization

# Conflicts:
#	src/virtual-machine.js
This commit is contained in:
Ray Schamp 2017-04-27 17:53:30 -04:00
commit 4f59e98bc8

View file

@ -240,6 +240,8 @@ class VirtualMachine extends EventEmitter {
return sb2.deserialize(json, this.runtime, true).then(targets => {
this.runtime.targets.push(targets[0]);
this.editingTarget = targets[0];
this.editingTarget.updateAllDrawableProperties();
// Update the VM user's knowledge of targets and blocks on the workspace.
this.emitTargetsUpdate();
this.emitWorkspaceUpdate();