Skip to content
Snippets Groups Projects
Commit 39782824 authored by DD Liu's avatar DD Liu
Browse files

Correct call to addCostumeFromBuffer for svgs

parent 34e764c9
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ const costumeUpload = function (fileData, fileType, costumeName, storage, handle
// passing in an array buffer causes the sprite/costume
// thumbnails to not display because the data URI for the costume
// is invalid
addCostumeFromBuffer(null, new Uint8Array(fileData));
addCostumeFromBuffer(new Uint8Array(fileData));
} else {
// otherwise it's a bitmap
bitmapAdapter.importBitmap(fileData, fileType).then(addCostumeFromBuffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment