diff --git a/src/containers/costume-tab.jsx b/src/containers/costume-tab.jsx index 1b8b2b99314e8f9a91b32e2139f37d5c0ccbe010..0a360ba33720d75acf8ea0f577596b39b4df8ea4 100644 --- a/src/containers/costume-tab.jsx +++ b/src/containers/costume-tab.jsx @@ -195,6 +195,7 @@ class CostumeTab extends React.Component { this.fileInput = input; } formatCostumeDetails (size, optResolution) { + // If no resolution is given, assume that the costume is an SVG const resolution = optResolution ? optResolution : 1; // Convert size to stage units by dividing by resolution // Round up width and height for scratch-flash compatibility