Undo an unnecessary change from the last commit.

This commit is contained in:
Karishma Chadha 2018-04-20 18:11:14 -04:00
parent 54b52ba96c
commit e1d9df3b1b

View file

@ -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
);