mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
change order
This commit is contained in:
parent
48fec12391
commit
caf98cb185
1 changed files with 2 additions and 2 deletions
|
@ -384,9 +384,9 @@ class VirtualMachine extends EventEmitter {
|
|||
*/
|
||||
updateSvg (costumeIndex, svg, rotationCenterX, rotationCenterY) {
|
||||
const costume = this.editingTarget.sprite.costumes[costumeIndex];
|
||||
if (costume && this.runtime && this.runtime.renderer) {
|
||||
costume.rotationCenterX = rotationCenterX;
|
||||
costume.rotationCenterY = rotationCenterY;
|
||||
if (costume && this.runtime && this.runtime.renderer) {
|
||||
this.runtime.renderer.updateSVGSkin(costume.skinId, svg, [rotationCenterX, rotationCenterY]);
|
||||
}
|
||||
// @todo: Also update storage in addition to renderer. Without storage, if you switch
|
||||
|
|
Loading…
Reference in a new issue