Skip to content

Extensions cannot be removed if its stage monitor had been shown #2331

Open
@apple502j

Description

@apple502j

Expected Behavior

Extensions without its blocks should not be serialized, or should be skipped in deserialization.

Actual Behavior

The monitor block for it will be kept during serialization and deserialization, making it impossible to remove without modifying JSON.

Related Code

https://github.com/LLK/scratch-vm/blob/develop/src/serialization/sb3.js#L1168 - Deserialization of monitors; extensions are re-added there.

Steps to Reproduce

Add an extension with a stage monitor (such as Translate), show it then hide it. Save the project locally or on the website, and reload it. The extension is not removed, despite having no translation blocks.

Operating System and Browser

any

Related: #712

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions