Open
Description
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.