mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -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) {
|
updateSvg (costumeIndex, svg, rotationCenterX, rotationCenterY) {
|
||||||
const costume = this.editingTarget.sprite.costumes[costumeIndex];
|
const costume = this.editingTarget.sprite.costumes[costumeIndex];
|
||||||
|
if (costume && this.runtime && this.runtime.renderer) {
|
||||||
costume.rotationCenterX = rotationCenterX;
|
costume.rotationCenterX = rotationCenterX;
|
||||||
costume.rotationCenterY = rotationCenterY;
|
costume.rotationCenterY = rotationCenterY;
|
||||||
if (costume && this.runtime && this.runtime.renderer) {
|
|
||||||
this.runtime.renderer.updateSVGSkin(costume.skinId, svg, [rotationCenterX, rotationCenterY]);
|
this.runtime.renderer.updateSVGSkin(costume.skinId, svg, [rotationCenterX, rotationCenterY]);
|
||||||
}
|
}
|
||||||
// @todo: Also update storage in addition to renderer. Without storage, if you switch
|
// @todo: Also update storage in addition to renderer. Without storage, if you switch
|
||||||
|
|
Loading…
Reference in a new issue