Merge pull request #1071 from kchadha/fix-mp3-edit-bug

Fix issue with sound upload and save/load
This commit is contained in:
Paul Kaplan 2018-04-20 16:01:04 -04:00 committed by GitHub
commit c9f30ed6ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -522,6 +522,7 @@ class VirtualMachine extends EventEmitter {
storage.DataFormat.WAV,
soundEncoding
);
sound.dataFormat = storage.DataFormat.WAV;
sound.md5 = `${sound.assetId}.${sound.dataFormat}`;
}
// If soundEncoding is null, it's because gui had a problem