diff --git a/src/virtual-machine.js b/src/virtual-machine.js index be4b5c551..919208984 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -513,6 +513,9 @@ class VirtualMachine extends EventEmitter { storage.DataFormat.SVG, (new TextEncoder()).encode(svg) ); + // If we're in here, we've edited an svg in the vector editor, + // so the dataFormat should be 'svg' + costume.dataFormat = storage.DataFormat.SVG; this.emitTargetsUpdate(); }