From caf98cb185e876737afd0cc09fd23781e7c804ef Mon Sep 17 00:00:00 2001 From: DD Date: Tue, 5 Sep 2017 17:53:27 -0400 Subject: [PATCH] change order --- src/virtual-machine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 45a2de167..6e16ef90a 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -384,9 +384,9 @@ class VirtualMachine extends EventEmitter { */ updateSvg (costumeIndex, svg, rotationCenterX, rotationCenterY) { const costume = this.editingTarget.sprite.costumes[costumeIndex]; - costume.rotationCenterX = rotationCenterX; - costume.rotationCenterY = rotationCenterY; if (costume && this.runtime && this.runtime.renderer) { + costume.rotationCenterX = rotationCenterX; + costume.rotationCenterY = rotationCenterY; this.runtime.renderer.updateSVGSkin(costume.skinId, svg, [rotationCenterX, rotationCenterY]); } // @todo: Also update storage in addition to renderer. Without storage, if you switch