mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Update index.js
This commit is contained in:
parent
16449ae73d
commit
51d829786c
1 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,9 @@ VirtualMachine.prototype.importFromJson = function (json) {
|
|||
var target = sprite.createClone();
|
||||
this.runtime.targets.push(target);
|
||||
for (x in obj.sprites[i]) {
|
||||
if (x == "sprite") {
|
||||
continue;
|
||||
}
|
||||
target[x] = obj.sprites[y];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue