Skip to content

Conversation

@kchadha
Copy link
Contributor

@kchadha kchadha commented Dec 8, 2018

Resolves

Resolves scratchfoundation/scratch-gui#3608.

Proposed Changes

Fix a bug in load-costume where sprites from vector file upload were not getting loaded correctly because of a failed === comparison between two object references. Compare asset type runtimeFormat (which is a string) instead of AssetType object references because costume assets can get flattened (e.g. while uploading a sprite from an image file).

This was a regression introduced by #1691 and the corresponding scratchfoundation/scratch-gui#3491 and not caught by #1719.

Test Coverage

Manually tested with svg images.

…se costume assets can get flattened (e.g. while uploading a sprite from file).
@kchadha kchadha added this to the December 2018 milestone Dec 8, 2018
@rschamp rschamp assigned kchadha and unassigned rschamp and fsih Dec 8, 2018
@kchadha kchadha merged commit 532e63d into scratchfoundation:develop Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants