Skip to content

Conversation

@paulkaplan
Copy link
Contributor

Resolves

What Github issue does this resolve (please include link)?

Resolves an issue we saw in smoke test, related to scratchfoundation/scratch-gui#4181

Add a "clean" flag to assets. Assets that get updated WITHOUT requiring an assetId change are set to CLEAN, assets that require id updates are NOT CLEAN.

This is used by the GUI to only save assets that are NOT CLEAN.

A circumstance where an asset is marked as clean would be loading from any of the helpers. (asset.setData(...) without generateId flag)

A circumstance where an asset is marked as not clean would be when the VM loads a 2.0 costume that needs to be updated in storage after being modified. (asset.setData(..., true))

Another circumstance where an asset is marked as not clean is when it is created by the costume editor (storage.createAsset(..., true))

@paulkaplan paulkaplan added this to the December 2018 milestone Dec 21, 2018
@paulkaplan paulkaplan merged commit 5e9c19d into scratchfoundation:develop Dec 21, 2018
@paulkaplan paulkaplan deleted the mark-web-as-clean branch December 21, 2018 18:03
@rschamp
Copy link
Contributor

rschamp commented Dec 21, 2018

🎉 This PR is included in version 1.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants