Skip to content

Uploading a sprite should check for conflicting variable IDs #1766

Open
@kchadha

Description

@kchadha

Expected Behavior

No two distinct variables in a given project should have the same ID.

Actual Behavior

Downloading and then uploading a sprite with local variables also duplicates variable IDs. If the sprite is uploaded into the same project it was downloaded from, this will cause problems with variable monitors (when we start exporting variable monitors in sprites).

E.g. Sprite1 has local variable foo, and we download and upload Sprite1 into the same project, creating a new sprite Sprite2 with variable foo. The variable block referring to foo in the toolbox is shared by both sprites, causing problems e.g. you can only have the monitor for one of the local variables up at any time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions