mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Undo an unnecessary change from the last commit.
This commit is contained in:
parent
54b52ba96c
commit
e1d9df3b1b
1 changed files with 2 additions and 2 deletions
|
@ -405,8 +405,8 @@ class VirtualMachine extends EventEmitter {
|
|||
* @returns {?Promise} - a promise that resolves when the costume has been added
|
||||
*/
|
||||
addCostume (md5ext, costumeObject) {
|
||||
return loadCostume(md5ext, costumeObject, this.runtime).then(loadedCostume => {
|
||||
this.editingTarget.addCostume(loadedCostume);
|
||||
return loadCostume(md5ext, costumeObject, this.runtime).then(() => {
|
||||
this.editingTarget.addCostume(costumeObject);
|
||||
this.editingTarget.setCostume(
|
||||
this.editingTarget.getCostumes().length - 1
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue